当前位置:网站首页>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.查字段名和字段数值
边栏推荐
- 11月24号,我们为“满月”庆祝
- Simply test the two different data transmission methods of content length and chunked
- 力扣方法总结:查找类
- 使用wireshark抓取Tcp三次握手
- Valin cable: BI application promotes enterprise digital transformation
- Introduction to parameters of CarSim pavement 3D shape file
- W10 is upgraded to W11 system, but the screen is black, but the mouse and desktop shortcuts can be used. How to solve it
- Force buckle method summary: sliding window
- Global and Chinese market of medicine cabinet 2022-2028: Research Report on technology, participants, trends, market size and share
- Opencv3 6.3 reduced pixel sampling with filters
猜你喜欢
16: 00 interview, came out at 16:08, the question is really too
Introduction to parameters of CarSim pavement 3D shape file
STM32-新建工程(参考正点原子)
How to wrap qstring strings
路由基础—动态路由
Jumping | Blue Bridge Cup
[dynamic planning] p4170: coloring (interval DP)
MySQL optimization
How to back up the configuration before the idea when reinstalling the idea
2022 Heilongjiang latest food safety administrator simulation exam questions and answers
随机推荐
Cvpr19 deep stacked hierarchical multi patch network for image deblurring paper reproduction
Smart agriculture solutions smart agriculture system development
Use of opencv3 6.2 low pass filter
乐理基础(简述)
sqli-labs第2关
How to wrap qstring strings
Simply test the two different data transmission methods of content length and chunked
Installation and use of simple packaging tools
Makefile基本原理
常量指针和指针常量
High school mathematics compulsory one
STL quick reference manual
c语言自定义类型——结构体,位段(匿名结构体,结构体的自引用,结构体的内存对齐)
cve_ 2019_ 0708_ bluekeep_ Rce vulnerability recurrence
CarSim problem failed to start solver: path_ ID_ OBJ(X) was set to Y; no corresponding value of XXXXX?
2022 Heilongjiang latest food safety administrator simulation exam questions and answers
Valin cable: BI application promotes enterprise digital transformation
OpenCV关于x,y坐标容易混淆的心得
高中数学必修一
Use the kaggle training model and download your own training model