当前位置:网站首页>SQL注入中 #、 --+、 --%20、 %23是什么意思?
SQL注入中 #、 --+、 --%20、 %23是什么意思?
2022-08-04 02:50:00 【[email protected]】
1.# 和 -- (有个空格)表示注释,可以使它们后面的语句不被执行。在url中,如果是get请求**(记住是get请求),也就是我们在浏览器中输入的url)** ,解释执行的时候,url中#号是用来指导浏览器动作的,对服务器端无用。所以,HTTP请求中不包括#,因此使用#闭合无法注释,会报错;而使用-- (有个空格),在传输过程中空格会被忽略,同样导致无法注释,所以在get请求传参注入时才会使用--+的方式来闭合,因为+会被解释成空格。
2.当然,也可以使用--%20,把空格转换为urlencode编码格式,也不会报错。同理把#变成%23,也不报错。
3.如果是post请求,则可以直接使用#来进行闭合。常见的就是表单注入,如我们在后台登录框中进行注入。
4.为什么--后面必须要有空格,而#后面就不需要?
因为使用--注释时,需要使用空格,才能形成有效的sql语句,而#后面可以有空格,也可以没有,sql就是这么规定的,记住就行了。
因为不加空格,--直接和系统自动生成的单引号连接在了一起,会被认为是一个关键词,无法注释掉系统自动生成的单引号。
版权声明
本文为[[email protected]]所创,转载请带上原文链接,感谢
https://blog.csdn.net/lkbzhj/article/details/126149298
边栏推荐
- 小程序+新零售,玩转行业新玩法!
- In a more general sense, calculating the displacement distance and assumptions
- [Study Notes Dish Dog Learning C] Dynamic Memory Management
- sqoop ETL tool
- Dong mingzhu live cold face away, when employees frequency low-level mistakes, no one can understand their products
- Flutter3.0线程——四步教你如何全方位了解(事件队列)
- What is SVN (Subversion)?
- 第08章 索引的创建与设计原则【2.索引及调优篇】【MySQL高级】
- 各位大佬好,麻烦问一下flink cdc oracle写入doris的时候,发现cpu异常,一下下跑
- MCU C language -> usage, and meaning
猜你喜欢

Parquet encoding

Mini program + new retail, play the new way of playing in the industry!

DHCP服务详解

Day13 Postman的使用

Ant - the design of the Select component using a custom icon (suffixIcon attribute) suffixes, click on the custom ICONS have no reaction, will not display the drop-down menu

云开发校园微社区微信小程序源码/二手交易/兼职交友微信小程序开源源码

How to drop all tables under database in MySQL

自制蓝牙手机app控制stm8/stm32/C51板载LED

Engineering drawing review questions (with answers)

Priority_queue element as a pointer, the overloaded operators
随机推荐
参加Oracle OCP和MySQL OCP考试的学员怎样在VUE预约考试
返回字符串中的最大回文数
Returns the maximum number of palindromes in a string
单片机C语言->的用法,和意思
Big guys, it takes a long time to read mysql3 million single tables, what parameters can be discounted, or is there any way to hurry up
各位大佬好,麻烦问一下flink cdc oracle写入doris的时候,发现cpu异常,一下下跑
小程序:扫码打开参数解析
2022.8.3-----leetcode.899
Small Turtle Compilation Notes
倒计时2天,“文化数字化战略新型基础设施暨文化艺术链生态建设发布会”启幕在即
golang中的unsafe.Pointer,指针,引用
mpf5_定价Bond_yield curve_Spot coupon_duration_有效利率_连续复利_远期_Vasicek短期_CIR模型Derivatives_Tridiagonal_ppf
KingbaseES数据库启动失败,报“内存段超过可用内存”
Detailed analysis of scaffolding content
MySQL高级-读写分离-分库分表
What is the source of flinkcdc consuming mysql binlog data without sqltype=delete
Why use Selenium for automated testing
In the season of going overseas, the localization of Internet tips for going overseas
数据湖(二十):Flink兼容Iceberg目前不足和Iceberg与Hudi对比
Development of Taurus. MVC WebAPI introductory tutorial 1: download environment configuration and operation framework (including series directory).