当前位置:网站首页>【SQL注入点】注入点出现位置、判断
【SQL注入点】注入点出现位置、判断
2022-07-03 04:33:00 【黑色地带(崛起)】
目录
一、四大注入点
1.1、简介:
我们遇到的不一定注入点是表单中username字段的情况,有时候注入点会隐藏在不同的地方
四个常见的注入点的位置:GET参数中、POST请求中、User-Agent中、Cookies中
1.2、分类:
(1)GET参数中的注入(URL):
GET中的注入点一般最容易发现,因为我们可以在地址栏获得URL和参数等,可以用Sqlmap或者手工验证是否存在注入。
(2)POST请求中的注入(抓包):
burp:POST中的注入点一般需要我们通过抓包操作来发现,好比使用Burp
插件:浏览器插件Hackbar来发送POST包。
Sqlmap或者手工验证。
(3)User-Agent中的注入(抓包):
burp:发现User-Agent中的注入,可以使用Burp的Repeater模块
Sqlmap:将Sqlmap的参数设置为level=3,这样Sqlmap会自动检测User-Agent中是否存在注入。
(4)Cookies中的注入(浏览器插件、抓包):
burp:寻找Cookies中的注入,可以使用Burp的Repeater模块。
Sqlmap:可以设置参数为level=2,这样Sqlmap就会自动检测Cookies中是否存在注入了。
插件:浏览器修改cookie的插件也可以安装使用
二、判断注入点是否存在
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、获取字段中的数据
边栏推荐
- Summary of training competition (Lao Li's collection of questions)
- RSRS指标择时及大小盘轮动
- How do you use lodash linking function- How do you chain functions using lodash?
- AWS VPC
- Two points -leetcode-540 A single element in an ordered array
- After job hopping at the end of the year, I interviewed more than 30 companies in two weeks and finally landed
- Contents of welder (primary) examination and welder (primary) examination in 2022
- How to retrieve the password for opening word files
- Hj35 serpentine matrix
- Use the benchmarksql tool to perform a data prompt on kingbases. The jdbc driver cannot be found
猜你喜欢

2022 new examination questions for the main principals of hazardous chemical business units and examination skills for the main principals of hazardous chemical business units
![[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)

使用BENCHMARKSQL工具对KingbaseES执行测试时报错funcs sh file not found

Smart contract security audit company selection analysis and audit report resources download - domestic article

2022 chemical automation control instrument examination summary and chemical automation control instrument certificate examination

Dismantle a 100000 yuan BYD "Yuan". Come and see what components are in it.

Leetcode simple question: check whether two string arrays are equal

A outsourcing boy's mid-2022 summary
![[文献阅读] Sparsity in Deep Learning: Pruning and growth for efficient inference and training in NN](/img/7e/50fa6f65b5a4f0bb60909f57daff56.png)
[文献阅读] Sparsity in Deep Learning: Pruning and growth for efficient inference and training in NN

What are the Bluetooth headsets with good sound quality in 2022? Inventory of four high-quality Bluetooth headsets
随机推荐
2022 a special equipment related management (elevator) analysis and a special equipment related management (elevator) simulation test
What's wrong with SD card data damage? How to recover SD card data damage
[software testing-6] & Test Management
[set theory] set identities (idempotent law | exchange law | combination law | distribution rate | De Morgan law | absorption rate | zero law | identity | exclusion law | contradiction law | complemen
Leetcode simple question: check whether the string is an array prefix
2022-02-14 (394. String decoding)
Integration of Android high-frequency interview questions (including reference answers)
Know that Chuangyu cloud monitoring - scanv Max update: Ecology OA unauthorized server request forgery and other two vulnerabilities can be detected
IPhone x forgot the boot password
MC Layer Target
MongoDB 慢查询语句优化分析策略
RSRS index timing and large and small disc rotation
跨境电商多商户系统怎么选
金仓数据库KingbaseES 插件kdb_database_link
Arthas watch grabs a field / attribute of the input parameter
怎么用Kotlin去提高生产力:Kotlin Tips
When using the benchmarksql tool to preheat data for kingbasees, execute: select sys_ Prewarm ('ndx_oorder_2 ') error
Youdao cloud notes
[BMZCTF-pwn] 20-secret_ file
Human resource management system based on JSP