当前位置:网站首页>SQL injection cookie injection
SQL injection cookie injection
2022-07-07 05:04:00 【In a word, the Trojan horse (the growth road of Wang an Xiaobai)】
One 、 What is? cookie
cookie Sent by the server and stored in the browser , So the next time this unique visitor comes back to the web server , This information can be read back from the browser . It's very useful , Let the browser remember the specific information of this visitor , Like the location of the last visit 、 Time spent or user preferences
Two 、cookie Injection principle
cookie The principle of injection and others SQL The principle of injection is the same , It's just that we used the previous parameters get perhaps post Mode submission , and cookie Injection parameters we use cookie Submitted by .
3、 ... and 、cookie Injected demo
1. Start by opening sqlilabs/Less-20/index.php, The account number and password entered are admin Log in .

2. Enter the page to see the information displayed by the display bit , You can see that the backend gets the information from cookie Information about

3. open burp suite, Click Run in the browser , Grab the data packet as shown in the figure below

4. stay burp suite Of repeater Module for editing 
5. Try to close according to the returned error message
payload:Cookie: uname=admin'and 1=1 --+ Found no error reported . You can do it here cookie Inject

6. Get the current database name ( You can use Boolean blind injection or error reporting injection , Error reporting injection is used here )
payload:Cookie: uname=admin'and updatexml(1,concat(0x7e,(select database()),0x7e),1) --+
View error message :

边栏推荐
- Sublime tips
- JS variable plus
- [hand torn STL] list
- R descriptive statistics and hypothesis testing
- [ArcGIS tutorial] thematic map production - population density distribution map - population density analysis
- Redis如何实现多可用区?
- Development thoughts of adding new requirements in secondary development
- y58.第三章 Kubernetes从入门到精通 -- 持续集成与部署(三一)
- npm ERR! 400 Bad Request - PUT xxx - “devDependencies“ dep “xx“ is not a valid dependency name
- Why JSON is used for calls between interfaces, how fastjson is assigned, fastjson 1.2 [email protected] Mapping relatio
猜你喜欢

JS also exports Excel

Mysql database (basic)

qt 简单布局 盒子模型 加弹簧

Common Oracle SQL statements

Understand common network i/o models

A line of R code draws the population pyramid

LabVIEW在打开一个新的引用,提示内存已满

sublime使用技巧

Liste des hôtes d'inventaire dans ansible (je vous souhaite des fleurs et de la romance sans fin)

If you‘re running pod install manually, make sure flutter pub get is executed first.
随机推荐
Field data acquisition and edge calculation scheme of CNC machine tools
记录一次压测经验总结
【ArcGIS教程】专题图制作-人口密度分布图——人口密度分析
MySQL数据库(基础篇)
使用知云阅读器翻译统计遗传学书籍
批量归一化(标准化)处理
Using thread class and runnable interface to realize the difference between multithreading
QT控件样式系列(一)之QSlider
PLC模拟量输出 模拟量输出FB analog2NDA(三菱FX3U)
5G VoNR+之IMS Data Channel概念
LabVIEW在打开一个新的引用,提示内存已满
Development thoughts of adding new requirements in secondary development
NiO related knowledge points (I)
Batch normalization (Standardization) processing
Why JSON is used for calls between interfaces, how fastjson is assigned, fastjson 1.2 [email protected] Mapping relatio
JS input and output
AOSP ~Binder 通信原理 (一) - 概要
Run the command once per second in Bash- Run command every second in Bash?
Clickhouse (03) how to install and deploy Clickhouse
JS variable