当前位置:网站首页>sqli-labs第1关
sqli-labs第1关
2022-07-02 06:29:00 【藤原千花的败北】
草草写的一篇记录文章
概念
SQL注入就是将恶意代码拼接到业务正常的数据库查询,造成数据库信息泄露等危害。
我觉得
要弄懂SQL注入,需要一点计网的知识,最好知道Web开发的整个流程,中间用了哪些技术,为什么需要这种技术。当然,你首先得懂得数据库以及SQL查询,并且程序设计语言和SQL语言之间的结合(推荐一本书《数据库系统概论》)。有了这些基础,SQL注入就自然而然会懂的。
通关思路
输入id,登录正常
尝试闭合语句
单引号报错,推测后端查询语句为:
select * from table where id = ’ input ’

通过order by 枚举,可知字段数为3
由于回显信息较多,优先联合注入
由上图可知,第2、第3个字段为回显信息,故可构造payload,开始注入
库名:
表名:
http://127.0.0.1/sqli-labs/Less-1/?id=-1’ union select 1,2,group_concat(table_name) from information_schema.tables where table_schema=‘security’ --+
字段名:
字段内容:
union select 1,2,group_concat(users,0x7e,password) from users --+
看过几篇教程做题时的记录
1、输入不同id,有不同回显结果,猜测后台sql语句为:select * from table where id= input;
2、单引号测试,报错,推测后台sql语句为:select * from table where id = ‘input’;
3、构造语句,单引号闭合,order by 4出错 ---->3列字段,select 1,2,3,–>回显位置;
4、联合注入: union select 1,2,(构造语句查询信息)–+
1.找漏洞
2.猜解字段数
3.获取数据库名字
4.查表
5.查字段名和字段数值
边栏推荐
- Simply test the two different data transmission methods of content length and chunked
- Network security - summary and thinking of easy-to-use fuzzy tester
- C language implements XML generation and parsing library (XML extension)
- Realize bidirectional linked list (with puppet node)
- 路由基础—动态路由
- Programming ape learning English - imperative programming
- 16: 00 interview, came out at 16:08, the question is really too
- sqli-labs第8关(布尔盲注)
- Carsim-问题Failed to start Solver: PATH_ID_OBJ(X) was set to Y; no corresponding value of XXXXX?
- How to wrap qstring strings
猜你喜欢

sqli-labs第8关(布尔盲注)

IP协议与IP地址

Intelligent manufacturing solutions digital twin smart factory

MySQL optimization
![[dynamic planning] p4170: coloring (interval DP)](/img/52/76f8baebb19fe10db91c74fec9a697.jpg)
[dynamic planning] p4170: coloring (interval DP)
![DWORD ptr[]](/img/6e/f68863c9f5b8608b22a24d9c1836d9.jpg)
DWORD ptr[]

Chinese garbled code under vscade

C language implements XML generation and parsing library (XML extension)

How to back up the configuration before the idea when reinstalling the idea

VS Code配置问题
随机推荐
Wang extracurricular words
cve_ 2019_ 0708_ bluekeep_ Rce vulnerability recurrence
In depth understanding of prototype drawings
[untitled]
Global and Chinese market of recovery equipment 2022-2028: Research Report on technology, participants, trends, market size and share
OpenCV3 6.3 用滤波器进行缩减像素采样
程序猿学英语-Learning C
CarSim problem failed to start solver: path_ ID_ OBJ(X) was set to Y; no corresponding value of XXXXX?
Use of OpenCV 6.4 median filter
MySQL optimization
CarSim learning experience - rough translation 1
双向链表的实现(双向链表与单向链表的简单区别联系和实现)
Global and Chinese markets for magnetic resonance imaging (MRI) transmission 2022-2028: Research Report on technology, participants, trends, market size and share
顺序表基本功能函数的实现
Deep understanding of JVM
Carsim 学习心得-粗略翻译1
Programming ape learning English - imperative programming
How to back up the configuration before the idea when reinstalling the idea
sqli-labs第12关
On November 24, we celebrate the "full moon"