当前位置:网站首页>【SQL注入】联合查询(最简单的注入方法)
【SQL注入】联合查询(最简单的注入方法)
2022-07-03 04:33:00 【黑色地带(崛起)】
目录
一、介绍:
是最简单的一种注入方法
联合查询注入 报错查询注入 布尔型注入 延时注入 堆叠查询注入
二、原理:
就是可合并多个查询的结果的合集,顾名思义,就是将一个表追加到另一个表后,从而实现查询结果组合在一起。
在URL的参数位置中,将构造的语句注入到参数位置中
select (原始查询内容) union select (构造的内容)
三、前提条件
①存在注入点,即未被过滤
②有显示位,即能回显结果
③两表列数相同,即order by 或union select 去判断列 数
④数据类型相同
四、利用过程
1、判断是否存在注入点
(1)在参数位置修改参数值,eg:id=1修改为2后是否数据改变
(2)插入单、双引号的检测方法(常用),未闭合的单引号会引起SQL语句单引号未闭合的错误提示
2、判断注入点还是整形或字符型
(1)数字型:通过and 1=1
(2)字符串型:闭合单引号测试语句'and'1'='1进行判断
3、判断查询列数
order by 或 union select
4、判断显示位
报错回显,用不存在的id=-1加上union select……
或者and1=2加上union select……
下面的就都是通过报错后,在显示位构造要查找的信息
5、获取所有数据库名
6、获取数据库所有表名
7、获取字段名
8、获取字段中的数据
边栏推荐
- Crazy scientist
- 2022 t elevator repair simulation examination question bank and t elevator repair simulation examination question bank
- [fairseq] 报错:TypeError: _broadcast_coalesced(): incompatible function arguments
- 金仓数据库KingbaseES 插件kdb_exists_expand
- [software testing-6] & Test Management
- What's wrong with SD card data damage? How to recover SD card data damage
- Dive into deep learning - 2.1 data operation & Exercise
- 使用BENCHMARKSQL工具对KingbaseES执行测试时报错funcs sh file not found
- 4 years of experience to interview test development, 10 minutes to end, ask too
- 使用BENCHMARKSQL工具对KingbaseES预热数据时执行:select sys_prewarm(‘NDX_OORDER_2 ‘)报错
猜你喜欢

有道云笔记

Golang -- realize file transfer
![[PCL self study: filtering] introduction and use of various filters in PCL (continuously updated)](/img/36/53886b9d3b98f744be2b6aa6b5d3eb.jpg)
[PCL self study: filtering] introduction and use of various filters in PCL (continuously updated)

一名外包仔的2022年中总结

Games101 Lesson 9 shading 3 Notes

X-ray normal based contour rendering

arthas watch 抓取入参的某个字段/属性

Asp access teaching management system design finished product

Introduction of pointer variables in function parameters

SSM based campus part-time platform for College Students
随机推荐
使用BENCHMARKSQL工具对KingbaseES执行测试时报错funcs sh file not found
2022-02-14 (394. String decoding)
[Thesis Writing] how to write the overall design of JSP tourism network
Reptile exercise 03
[fairseq] 报错:TypeError: _broadcast_coalesced(): incompatible function arguments
FuncS sh file not found when using the benchmarksql tool to test kingbases
[fxcg] market analysis today
The programmer went to bed at 12 o'clock in the middle of the night, and the leader angrily scolded: go to bed so early, you are very good at keeping fit
Feature_selection
Library management system based on SSM
Pyqt control part (II)
[BMZCTF-pwn] 20-secret_ file
怎么用Kotlin去提高生产力:Kotlin Tips
220214c language learning diary
Arthas watch grabs a field / attribute of the input parameter
[BMZCTF-pwn] 18-RCTF-2017-Recho
2022-02-12 (338. Bit count)
因子选股-打分模型
Matplotlib -- save graph
After job hopping at the end of the year, I interviewed more than 30 companies in two weeks and finally landed