当前位置:网站首页>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 :

边栏推荐
- Two methods of chromosome coordinate sequencing
- npm ERR! 400 Bad Request - PUT xxx - “devDependencies“ dep “xx“ is not a valid dependency name
- 为什么很多人对技术债务产生误解
- ThinkPHP关联预载入with
- How to choose an offer and what factors should be considered
- JS variable case output user name
- Meow, come, come: do you really know if, if else
- Operand of null-aware operation ‘!‘ has type ‘SchedulerBinding‘ which excludes null.
- Leetcode(417)——太平洋大西洋水流问题
- 使用Thread类和Runnable接口实现多线程的区别
猜你喜欢

JS also exports Excel

带你遨游银河系的 10 种分布式数据库

Dynamically generate tables

使用知云阅读器翻译统计遗传学书籍
![[practice leads to truth] is the introduction of import and require really the same as what is said on the Internet](/img/58/4337f0972f7171a5c21e640f03e0b7.png)
[practice leads to truth] is the introduction of import and require really the same as what is said on the Internet

SQL injection HTTP header injection

Monitoring cannot be started after Oracle modifies the computer name

AttributeError: module ‘torch._ C‘ has no attribute ‘_ cuda_ setDevice‘

AttributeError: module ‘torch._C‘ has no attribute ‘_cuda_setDevice‘

Ansible overview and module explanation (you just passed today, but yesterday came to your face)
随机推荐
3.基金的类型
Vscode automatically adds a semicolon and jumps to the next line
【问道】编译原理
《二》标签
Markdown editor
Why do many people misunderstand technical debt
高手勿进!写给初中级程序员以及还在大学修炼的“准程序员”的成长秘籍
Stm32f103ze+sht30 detection of ambient temperature and humidity (IIC simulation sequence)
当 Knative 遇见 WebAssembly
JS input and output
【愚公系列】2022年7月 Go教学课程 005-变量
【二叉树】二叉树寻路
A line of R code draws the population pyramid
PLC Analog output analog output FB analog2nda (Mitsubishi FX3U)
Leetcode(417)——太平洋大西洋水流问题
最全常用高数公式
Appium practice | make the test faster, more stable and more reliable (I): slice test
【736. Lisp 语法解析】
精彩速递|腾讯云数据库6月刊
JS variable