当前位置:网站首页>【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、获取字段中的数据
边栏推荐
- [Chongqing Guangdong education] reference materials for design and a better life of Zhongyuan Institute of science and technology
- Matplotlib -- save graph
- Leetcode simple question: check whether the string is an array prefix
- 2022 a special equipment related management (elevator) analysis and a special equipment related management (elevator) simulation test
- RSRS指标择时及大小盘轮动
- Hj35 serpentine matrix
- Leetcode simple question: check whether two string arrays are equal
- After job hopping at the end of the year, I interviewed more than 30 companies in two weeks and finally landed
- FFMpeg example
- Youdao cloud notes
猜你喜欢
Why should programmers learn microservice architecture if they want to enter a large factory?
A outsourcing boy's mid-2022 summary
[fxcg] inflation differences will still lead to the differentiation of monetary policies in various countries
Which Bluetooth headset is cost-effective? Four Bluetooth headsets with high cost performance are recommended
Games101 Lesson 9 shading 3 Notes
7. Integrated learning
Joint set search: merge intervals and ask whether two numbers are in the same set
When using the benchmarksql tool to test the concurrency of kingbasees, there are sub threads that are not closed in time after the main process is killed successfully
redis 持久化原理
使用BENCHMARKSQL工具对KingbaseES预热数据时执行:select sys_prewarm(‘NDX_OORDER_2 ‘)报错
随机推荐
Some information about the developer environment in Chengdu
sd卡数据损坏怎么回事,sd卡数据损坏怎么恢复
Leetcode simple question: check whether the string is an array prefix
Dive Into Deep Learning——2.1数据操作&&练习
What are the Bluetooth headsets with good sound quality in 2022? Inventory of four high-quality Bluetooth headsets
[set theory] Cartesian product (concept of Cartesian product | examples of Cartesian product | properties of Cartesian product | non commutativity | non associativity | distribution law | ordered pair
Auman Galaxy new year of the tiger appreciation meeting was held in Beijing - won the double certification of "intelligent safety" and "efficient performance" of China Automotive Research Institute
金仓数据库KingbaseES 插件kdb_date_function
Bugku CTF daily question baby_ flag. txt
Smart contract security audit company selection analysis and audit report resources download - domestic article
vulnhub HA: Natraj
Preliminary cognition of C language pointer
Which Bluetooth headset is good about 400? Four Bluetooth headsets with strong noise reduction are recommended
C language series - Section 3 - functions
When using the benchmarksql tool to test the concurrency of kingbasees, there are sub threads that are not closed in time after the main process is killed successfully
Two points -leetcode-540 A single element in an ordered array
怎么用Kotlin去提高生产力:Kotlin Tips
A outsourcing boy's mid-2022 summary
[Thesis Writing] how to write the overall design of JSP tourism network
MC Layer Target