当前位置:网站首页>[SQL注入] 扩展注入手法
[SQL注入] 扩展注入手法
2022-07-26 22:39:00 【ATZXC红蓝对抗】
1、宽字节注入
宽字节注入准确来说不是注入手法,而是另外一种比较特殊的情况。宽字节注入的目的是绕过单双引号转义,以sqli-labs-32 关为例子
分析:
在这个界面可以看出来,我们输入的字符,是通过编码的
编码格式为对应字符的十进制数字的十六进制
当我们查看是否含有注入点的时候,系统将我们的单引号转义了,是通过\转义的
然后被系统做了一个编码

解决方法:
由于这个编码通过十六进制编码的,我们可以通过使用“吃掉反斜线的方式”来进行注入
即,给这个数值多注入一个编码后的字符,让其反斜线形成乱码

进行闭合后,发现可以执行后面的语法
https://192.168.79.147/sqli-labs/Less-32/?id=1%81' and 1=2 union select 1,version(),database() --+
2、Cookie注入
注入点在Cookie 数据中,以sqli-labs-20 关为例子。
使用Burp Suite抓包,发现有报错,并且报错中出现了我们输入的参数,可以断定为是字符型注入,单引号闭合

发现回显点,使用联合查询

发现可以查到

3、base64注入

需要进行base64编码,将Cookie中的数值进行base64编码后,才能执行

进行注入测试,发现使用双引号的时候,有报错信息,并且是字符型注入
使用语句进行联合查询,发现有回显点
此时可以查询信息

编码过程
成功
4、User-Agent注入
18关


5、Referer注入
从页面信息可以知道这个是一个Referer注入

可以看出是一个需要给字符串配对的

因为有报错信息,可以使用报错注入
Referer: atzxc' and updatexml(1,concat(0x5e,(select version()),0x5e),1) and '1查出数据库信息

边栏推荐
- [CISCN2019 华北赛区 Day1 Web5]CyberPunk
- 2020-12-20 99 multiplication table
- Arcgis和Cass实现断面展高程点
- C语言 求素数、闰年以及最小公倍数最大公约数
- Looking for the real murderer
- Promise基本用法 20211130
- Dynamic binding, static binding, and polymorphism
- Shufflenet series (2): explanation of shufflenet V2 theory
- [RootersCTF2019]I_<3_Flask
- el-checkbox中的checked勾选状态问题 2021-08-02
猜你喜欢

C language to find prime numbers, leap years and minimum common multiples and maximum common divisors

el-checkbox中的checked勾选状态问题 2021-08-02
![[Qt]容器类、迭代器、foreach关键字](/img/88/d9d5be096009b4e5baa0966e6f292c.jpg)
[Qt]容器类、迭代器、foreach关键字

Use of postman

Leetcode 301 week

八皇后 N皇后

Leetcode high frequency question: the choice of the inn, how many options to choose accommodation, to ensure that you can find a coffee shop with a minimum consumption of no more than p yuan in the ev

C language shutdown applet

继承,继承,继承

Based on the theoretical principle and simulation results of MATLAB spherical decoding, compare 2norm spherical decoding, infinite norm spherical decoding, ML detection
随机推荐
【4.7 高斯消元详解】
Detailed explanation of arrow function 2021-04-30
Leetcode 301 week
DOM day_ 04 (7.12) BOM, open new page (delayed opening), address bar operation, browser information reading, historical operation
3_ Jupiter notebook, numpy and mattlotlib
C language shutdown applet
【3. Vim 操作】
Comparative simulation of LEACH protocol performance, including the number of dead nodes, data transmission, network energy consumption, the number of cluster heads and load balance
蓝桥杯 1004 [递归]母牛的故事
postman的使用
[2. TMUX operation]
[4.9 detailed explanation of inclusion exclusion principle]
[Qt]属性
The use of C language static can flexibly change the life cycle and make you write code like a duck to water
寻找真凶
[4.1 prime number and linear sieve]
Visual studio C cs0006 C failed to find metadata file
Input a string of letters and output the vowels inside. I hope you guys can give guidance
[leetcode] no duplicate longest string
继承,继承,继承