当前位置:网站首页>Judgment of database in SQL injection
Judgment of database in SQL injection
2022-07-31 05:52:00 【not used to having you】
Note: For technical discussion only, do not use for other purposes, all consequences have nothing to do with me.
Foreword: For penetration testing, we can use the corresponding statements and functions for penetration only if we know the database corresponding to the website.
Common databases:
Oracle, MySQL, SQL Server, Access, MSsql, Postgresql, mongodb, etc.
Oracle—Oracle Corporation—Commercial Large Databases
MySQL—Oracle Corporation (Acquisition)—— Open source small and medium databases
SQL SERVER—Microsoft Corporation—Commercial medium and large databases
Access—Microsoft Corporation—Commercial small databases
DB2—IBM Corporation—Commercial large databases
According to the port
Oracle: default port 1521
SQL Server: default port 1433
MySQL: default port 3306
The type corresponding to the backend language and database:
asp:sql server,Access
.net :sql server
php:PostgreSQL,Mysql
java:Oracle,Mysql
Website scripts, WEB service programs. Common combinations of database service programs include:
PHP+Apache+MYSQL
ASP+Microsoft IIS+ACCSECC
ASP+Microsoft IIS+mssql
ASPX+Microsoft IIS+Mssql
JSP+TOMCAT+Oracle(relatively rare)
Signature information of each database:
sql server: [email protected]@version –
Oracle:select banner from v$version
mysql:select @@version, version() –, length(user)>0 normal
postgresql:selectversion() –
For string handling
sql server : id=1 and 'a'+'b'='ab' –
mysql: id=1 and 'a'+'b'='ab' , 'ab'=concat('a','b')
oracle: id=1 and 'a'+'b'='a'||'b' ,'ab'=concat('a','b')
postgresql : id=1 and 'a'+'b'='a'||'b' ,'ab'=concat('a','b')
Special functions
len() and length() functions
length()/char_length(): for mysql database
len(): for sql sever database
lengthb()/length(): for useFor oracle database
length()/char_length(): for postgresql database
Special symbols, judgment of comments
Access: includes double hyphen (–), C style (/* . . . */)
MySQL: "#", means single-line comment, syntax "#comment content"
"-", means single-line comment, syntax "-- comment content"
"/**/", means multiple linesComment, syntax "/comment content/"
Oracle: "/**/", means multi-line comment, syntax "/comment content/"
"-", means single-line comment, syntax "-- comment content"
边栏推荐
猜你喜欢

代码块、Package,Import,封装(第六天)

继承、Super,重写、抽象类、抽象方法 1(第七天)

局部变量成员变量、引用类型、this,static(第五天)

(Crypto essential dry goods) Detailed analysis of the current NFT trading markets

(Crypto必备干货)详细分析目前NFT的几大交易市场

第7章 网络层第3次练习题答案(第三版)
Getting to know regular expressions

05 【绑定样式 条件渲染 列表渲染】

vulhub靶场学习日记hackme2

【数据库学习】Redis 解析器&&单线程&&模型
随机推荐
vulhub靶场学习日记hackme2
Install mysqldb in mac10.14
leetcode-每日一题873. 最长的斐波那契子序列的长度(哈希和二分)
代码块、Package,Import,封装(第六天)
字符串的新增方法
Digital twins will be an important way to enter the "metaverse"
初识正则表达式
Build DVWA with phpstudy
Fragmented NFT (Fractional NFT)
Linux修改MySQL数据库密码
12 【nextTick 过渡与动画】
uni-app进阶之自定义【day13】
Flask-based three-party login process
File operations in C language (1)
Volatility取证工具使用日记
tf.keras.utils.pad_sequences()
find、filter、map的区别
【windows】--- SQL Server 2008 超详细安装教程
11 【组件通信】
C语言文件读、写、定位函数