当前位置:网站首页>[SQL injection] joint query (the simplest injection method)
[SQL injection] joint query (the simplest injection method)
2022-07-03 04:38:00 【Black zone (rise)】
Catalog
One 、 Introduce :
Is the simplest injection method
Joint query injection Error reporting query injection Boolean Injection Delay Injection Stack query Injection
Two 、 principle :
It is a collection of results that can merge multiple queries , seeing the name of a thing one thinks of its function , Is to append one table to another table , So as to realize the combination of query results .
stay URL In the parameter position of , Inject the constructed statement into the parameter position
select ( Original query content ) union select ( The content of the structure )
3、 ... and 、 Prerequisite
① There are injection points , That is, it is not filtered
② There are display bits , The result can be echoed
③ The number of columns in the two tables is the same , namely order by or union select To judge column Count
④ Same data type
Four 、 Use process
1、 Determine if there is an injection point
(1) Modify the parameter value at the parameter position ,eg:id=1 It is amended as follows 2 Whether the data changes after
(2) Insert sheet 、 Detection method of double quotation marks ( Commonly used ), Unclosed single quotation marks cause SQL Statement single quotation mark unclosed error prompt
2、 Determine whether the injection point is plastic or character
(1) Digital : adopt and 1=1
(2) String type : Closed single quotation mark test statement 'and'1'='1 Judge
3、 Determine the number of query Columns
order by or union select
4、 Judge the display bit
Error echo , Use the nonexistent id=-1 add union select……
perhaps and1=2 add union select……
The following are all through the error report , Construct the information to be found in the display bit
5、 Get all database names
6、 Get all the table names in the database
7、 Get field name
8、 Get the data in the field
边栏推荐
- BMZCTF simple_ pop
- 【工具跑SQL盲注】
- 2.14 summary
- What's wrong with SD card data damage? How to recover SD card data damage
- 跨境电商多商户系统怎么选
- JVM原理简介
- [set theory] binary relationship (special relationship type | empty relationship | identity relationship | global relationship | divisive relationship | size relationship)
- General undergraduate college life pit avoidance Guide
- 220214c language learning diary
- 金仓数据库KingbaseES 插件kdb_database_link
猜你喜欢
Joint search set: the number of points in connected blocks (the number of points in a set)
Asp access teaching management system design finished product
After job hopping at the end of the year, I interviewed more than 30 companies in two weeks and finally landed
金仓KFS数据双向同步场景部署
Jincang KFS data bidirectional synchronization scenario deployment
Introduction of pointer variables in function parameters
I've been in software testing for 8 years and worked as a test leader for 3 years. I can also be a programmer if I'm not a professional
JVM原理简介
Introduction to JVM principle
Some information about the developer environment in Chengdu
随机推荐
普通本科大学生活避坑指南
Dive into deep learning - 2.1 data operation & Exercise
[dynamic programming] subsequence problem
UiPath实战(08) - 选取器(Selector)
Php+mysql registration landing page development complete code
The simple problem of leetcode: dismantling bombs
Employee attendance management system based on SSM
Two drawing interfaces - 1 Matlab style interface
I've been in software testing for 8 years and worked as a test leader for 3 years. I can also be a programmer if I'm not a professional
Factor stock selection scoring model
Prefix and (continuously updated)
金仓数据库KingbaseES 插件kdb_exists_expand
FFMpeg example
[PCL self study: filtering] introduction and use of various filters in PCL (continuously updated)
Golang -- realize file transfer
Writing skills of multi plate rotation strategy -- strategy writing learning materials
AWS VPC
Basic use of continuous integration server Jenkins
Solve BP Chinese garbled code
GFS分布式文件系统(光是遇见已经很美好了)