当前位置:网站首页>Summary of the first three passes of sqli Labs
Summary of the first three passes of sqli Labs
2022-07-02 15:27:00 【[email protected]】
Catalog
Their thinking
First of all, we need to judge whether it exists sql Inject holes , Look for the injection point ,SQL There are usually two types of injection , Plastic injection and character injection , If we want to judge which kind of injection this is, we need to analyze the error reporting statements here , Input –+ take sql After the following statement is commented out , You can judge the type by finding out whether the page echo is normal , Then use order by Sentence judgment , There are several columns of data in this table , And then id=1 Change to a database that doesn't exist id value , Such as -1, Use union select 1,2,3 Joint query statement to see whether the page has display bits , The last is to explode the library , Explosion meter , Pop field .
Blast storage
http://127.0.0.1/sqli-labs-master/Less-2/?id=-1 union select 1,2,database()–+
Explosion meter
http://127.0.0.1/sqli-labs-master/Less-2/?id=-1 union select 1,2,group_concat(table_name) from information_schema.tables where table_schema=‘security’–+
Pop field
http://127.0.0.1/sqli-labs-master/Less-2/?id=-1 union select 1,2,group_concat(column_name) from information_schema.columns where table_name=‘users’ and table_schema=‘security’–+
summary
group_concat() function
group_concat() Which lines belong to the same group , Show columns that belong to the same group . Which columns to return , By function parameter ( Is the field name ) decision . There must be a standard for grouping , It is based on group by The specified columns are grouped , That is, it is used to put SQL The results of statements are spliced together .
--
stay SQL Inside is a comment , But in URL in , If you add at the end -- , When the browser sends the request, it will send URL The space at the end is rounded off , So we use –+ Instead of -- , as a result of + stay URL By URL After encoding, it will become a space .
order by
By using order by Sentence to judge , There are several columns of data in this table .( The judgment method is whether the page echo is normal ).
union
Combine two result sets , Do not include repeating lines , At the same time, sort the default rules ;union Duplicate records will be filtered out after table linking , Therefore, after the table is linked, the generated result set will be sorted , Delete duplicate records and return results . On the left of the question select The clause query results are empty , that union The query result on the right naturally becomes the first row , Printed on the web page . take id Change to -1, send union The previous statement reports an error , It'll do the following .
版权声明
本文为[[email protected]]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202151501338110.html
边栏推荐
- TiDB 软件和硬件环境建议配置
- 06_栈和队列转换
- . Solution to the problem of Chinese garbled code when net core reads files
- GeoServer offline map service construction and layer Publishing
- Recommended configuration of tidb software and hardware environment
- How does the computer set up speakers to play microphone sound
- vChain: Enabling Verifiable Boolean Range Queries over Blockchain Databases(sigmod‘2019)
- Application of CDN in game field
- 数据分析思维分析方法和业务知识——业务指标
- 4. Data splitting of Flink real-time project
猜你喜欢

05_队列

Yolov5 code reproduction and server operation

How to choose a third-party software testing organization for automated acceptance testing of mobile applications

学习使用php将时间戳转换为大写日期的方法代码示例

06_ Stack and queue conversion

CodeCraft-22 and Codeforces Round #795 (Div. 2)D,E

Download blender on Alibaba cloud image station

Kibana basic operation

搭建自己的语义分割平台deeplabV3+

N皇后问题的解决
随机推荐
Real estate market trend outlook in 2022
你不知道的Set集合
How to conduct TPC-C test on tidb
The past and present lives of visual page building tools
11_ Redis_ Hyperloglog_ command
LeetCode刷题——两整数之和#371#Medium
PHP method to get the index value of the array item with the largest key value in the array
05_ queue
做好抗“疫”之路的把关人——基于RK3568的红外热成像体温检测系统
Kibana basic operation
How to choose a third-party software testing organization for automated acceptance testing of mobile applications
Recommended configuration of tidb software and hardware environment
vChain: Enabling Verifiable Boolean Range Queries over Blockchain Databases(sigmod‘2019)
Tidb data migration tool overview
Oracle primary key auto increment
Let your HMI have more advantages. Fet-g2ld-c core board is a good choice
Map introduction
Practical debugging skills
记一次面试
使用 TiUP 部署 TiDB 集群