当前位置:网站首页>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
边栏推荐
猜你喜欢

21_Redis_浅析Redis缓存穿透和雪崩

15_Redis_Redis.conf详解

数据分析思维分析方法和业务知识——业务指标

02_ Linear table_ Sequence table

Storage read-write speed and network measurement based on rz/g2l | ok-g2ld-c development board

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

. Net core logging system

Internet Explorer officially retired

N皇后问题的解决

你不知道的Set集合
随机推荐
Application and practice of Jenkins pipeline
02_线性表_顺序表
Principles, language, compilation, interpretation
Why can't programmers who can only program become excellent developers?
The past and present lives of visual page building tools
10_ Redis_ geospatial_ command
百变大7座,五菱佳辰产品力出众,人性化大空间,关键价格真香
19_ Redis_ Manually configure the host after downtime
11_ Redis_ Hyperloglog_ command
08_ strand
12_ Redis_ Bitmap_ command
学习使用php将时间戳转换为大写日期的方法代码示例
Practical debugging skills
16_ Redis_ Redis persistence
Pytorch 保存tensor到.mat文件
[noi Simulation Competition] scraping (dynamic planning)
The traversal methods of binary tree mainly include: first order traversal, middle order traversal, second order traversal, and hierarchical traversal. First order, middle order, and second order actu
工程师评测 | RK3568开发板上手测试
如何用 Sysbench 测试 TiDB
LeetCode刷题——两整数之和#371#Medium