当前位置:网站首页>SQL injection less42 (post stack injection)
SQL injection less42 (post stack injection)
2022-07-28 22:17:00 【Happy star】
Pre knowledge : SQL Inject Less38( Stack Injection )
The page of this question is similar to the second injection , But we can't register users , Therefore, it is impossible to use secondary injection .
White box audit , Look at the code
$username = mysqli_real_escape_string($con1, $_POST["login_user"]);
$password = $_POST["login_password"];
Only right username Escaped , And not right password, therefore password It's a breakthrough
Use universal password to test password' or 1=1#
But why do we enter admin But what logged in was Dumb Well .
Because it's here SQL yes
SELECT * FROM users WHERE username='admin' and password='' or 1=1 #'
and and Priority is higher than or Of . So this statement is equivalent to
select * from users where 1
Then the result is the whole picture users surface . and Dumb On the first line , So what you log in to is Dumb.
use password Stack Injection
Enter the user name casually
password ';drop table users;
https://blog.csdn.net/weixin_43901998/article/details/107566100
边栏推荐
- 【机器学习】朴素贝叶斯对文本分类--对人名国别分类
- Jmeter 安装第三方插件 Plugins Manager
- Official document of kubevela 1.4.x
- [CS231N]Lecture_2:Image Classification pipelin
- HYDAC overflow valve db08a-01-c-n-500v
- [machine learning] naive Bayesian classification of text -- Classification of people's names and countries
- Oracle built-in functions
- vuejs中如何实现动态路由切换及路由的缓存
- DHCP和PPPoE协议以及抓包分析
- Small program canvas generates posters
猜你喜欢

Chapter 7: drawing rotating cubes

40. 组合总和 II

记录Flutter解决A RenderFlex overflowed by 7.3 pixels on the bottom溢出问题

Lin Xiaobin, head of Tencent cloud database, borrowed 100 million yuan to speculate in stocks? Insider: the amount is not true

LCR测试仪最为主要的功能和用途都是什么

hcip实验(12)

hcip实验(15)

40. Combined sum II

90. 子集 II

System Analyst
随机推荐
CDN工作原理
Esp8266 Arduino programming example - deep sleep and wake up
Data visualization news, different forms of news reports
C语言编程规范学习笔记和总结
第 8 篇:创建摄像机类
Oracle database objects
40. Combined sum II
Ukrainian officials: half of Ukrainian agricultural products are exported through the Danube port
HCIP(13)
[NLP] generate word cloud
局域网添加DNS服务器进行域名解析
为什么 0.1 + 0.2 不等于0.3?如何解决这个问题?
HCIP(9)
hcip实验(15)
What testing services do third-party software testing institutions provide? Charging standard of software test report
HYDAC overflow valve db08a-01-c-n-500v
04. Default value of toref
表单验证和级联下拉列表(多种实现)
From Web3 to web2.5, is it backward or another way?
数据可视化新闻,不一样的新闻报道形式