当前位置:网站首页>SQL注入 Less42(POST型堆叠注入)
SQL注入 Less42(POST型堆叠注入)
2022-07-31 22:34:00 【华为云】
前置知识: SQL注入 Less38(堆叠注入)
这题的页面和二次注入类似,但是我们没法注册用户,所以也就没法使用二次注入。
白盒审计,查看代码
$username = mysqli_real_escape_string($con1, $_POST["login_user"]);$password = $_POST["login_password"];只对username进行了转义操作,而没有对password,所以password是个突破口
用万能密码来测试一下password' or 1=1#
但为什么我们输入的是admin但是登录进去的却是Dumb呢。
因为此处的SQL是
SELECT * FROM users WHERE username='admin' and password='' or 1=1 #'而and的优先级是高于or的。所以此语句就相当于
select * from users where 1那么结果则是整张users表。而Dumb处于第一行,因此登录进去的就是Dumb。
用password进行堆叠注入
用户名随便输入
密码';drop table users;
https://blog.csdn.net/weixin_43901998/article/details/107566100
边栏推荐
- Dry goods | 10 tips for MySQL add, delete, change query performance optimization
- Unity - LineRenderer show a line
- 景区手绘地图的绘制流程
- iNeuOS industrial Internet operating system, equipment operation and maintenance business and "low-code" form development tools
- @JsonFormat(pattern=“yyyy-MM-dd“)时间差问题
- 基于RT1052 Aworks nanopb string 类型固定长度使用方式(二十七)
- Implementing a Simple Framework for Managing Object Information Using Reflection
- 嵌入式开发没有激情了,正常吗?
- One thing to say, is outsourcing company worth it?
- 22年8月推广大使额外奖励规则
猜你喜欢

一款国外开发的高质量WordPress下载站模板主题

Qualcomm cDSP simple programming example (to query Qualcomm cDSP usage, signature), RK3588 npu usage query

程序进程和线程(线程的并发与并行)以及线程的基本创建和使用

ECCV 2022 Huake & ETH propose OSFormer, the first one-stage Transformer framework for camouflaging instance segmentation!The code is open source!...

Pytest first experience

Implementing a Simple Framework for Managing Object Information Using Reflection

Go mode tidy reports an error go warning “all” matched no packages

Realize serial port receiving data based on STM32 ring queue

MATLAB program design and application 2.4 Common internal functions of MATLAB

Daily practice——Randomly generate an integer between 1-100 and see how many times you can guess.Requirements: The number of guesses cannot exceed 7 times, and after each guess, it will prompt "bigger"
随机推荐
"The core concept of" image classification and target detection in the positive and negative samples and understanding architecture
Redis Overview: Talk to the interviewer all night long about Redis caching, persistence, elimination mechanism, sentinel, and the underlying principles of clusters!...
Summary of the classic drawing method of histogram
嵌入式开发没有激情了,正常吗?
Flex layout in detail
Efficient Concurrency: A Detailed Explanation of Synchornized's Lock Optimization
「APIO2010」巡逻 题解
什么是客户画像管理?
关注!海泰方圆加入《个人信息保护自律公约》
Talking about the algorithm security of network security
IDA PRO中汇编结构体识别
BM3 将链表中的节点每k个一组翻转
renderjs usage in uni-app
Dry goods | 10 tips for MySQL add, delete, change query performance optimization
输入输出优化
Collation of knowledge points in Ningbo University NBU IT project management final exam
Components of TypeScript
The latest masterpiece!Alibaba just released the interview reference guide (Taishan version), I just brushed it for 29 days
flowable workflow all business concepts
TestCafeSummary