Take a little knowledge of the learned SQL injection
Change the default sqlmap save path --output-dir f:\
Substr ( string, starting position, number of characters ) ( initial 1 is not 0)
Here is an example
https://www.1keydata.com/cn/sql/sql-substring.php
The ASCII function is usually used to determine the value of the character ASCII (substr ((select Database ()), max)) >
Dichotomy (also called binary method) can reduce the amount of guesswork
L ength () Judging length
and (Length (database ())) =
ORDER BY
The ORDER BY statement is used to sort the result set based on the specified column.
The order by statement sorts records by default in ascending order.
If you want to sort records in descending order, you can use the DESC
Http://www.w3school.com.cn/sql/sql_orderby.asp
L imit (mysql)
The LIMIT clause can be used to force the SELECT statement to return the specified number of records. LIMIT accepts one or two numeric parameters. parameter must be an integer constant. Given two parameters, the first parameter specifies the offset of the first return record row, and the second parameter specifies the maximum number of rows to return records. The offset of the initial record line is 0 (not 1)
MySQL under limit injection http://blog.csdn.net/cherrie007/article/details/76167822
G Roup_concat
Syntax:group_concat ([DISTINCT] field to connect [order by Asc/desc sort field] [Separator ' delimiter '])
http://blog.csdn.net/ys410900345/article/details/44828571 See examples more detailed
https://bbs.pediy.com/thread-218235.htm This is an attack instance.
MySQL comment symbol
mysql:# (%23),--(%2d%2d%20) "There is a space behind",/**/
Common SQL injection Characters
|
1 |
String operators |
' or ' |
|
|
2 |
Multi-line comments |
/*...*/ |
|
|
3 |
Plus, connect (equivalent to a space in URL) |
+ |
|
|
4 |
Single-line Comment |
#或-- |
|
|
5 |
Dual pipe (connection) |
|| |
|
|
6 |
Wildcard characters |
% |
|
|
7 |
Local variables |
@ |
|
|
8 |
Global variables |
@@ |
|
|
9 |
Delay |
WAITFOR DELAY ' 00:00:10 ' |
|
|
10 |
String substitution for numeric or numeric substitution strings |
|
|
|
|
|
|
|
Some common functions
Variable/function Output
User () Current user
Database () Current database
Version () Database version
Schema () Current Database
UUID () System uuid Key
Current_User () Current user
System_user () Current System user
Session_user () Session user
@ @hostname Current hostname
@ @tmpdir Temporary Directory
@ @datadir Data Directory
@ @version version of Database
@ @basedir Base Directory
@ @GLOBAL. Have_symlink Check If Symlink is Enabled or Disabled
@ @GLOBAL. Have_ssl Check If it SSL is available
Union Union query
The two SQL statements before and after the union need to have the same number of columns to be selected
The difference between Union all and Union is that it adds a de-weight function
When two SQL statements are federated, the content of the current statement selection is empty, and we will show the contents of the following statements here
SQL Injection Learning Notes (1)