当前位置:网站首页>SQL injection -day15
SQL injection -day15
2022-07-07 03:43:00 【kanna_ bush_ t】
3、 ... and 、Mysql Inject
3.1 necessary
3.1.1 Meta database information_schema

a. information_schema In the database tables What's in the table :


b. infomation_schema database columns What's in the table :

3.1.2 Sentence classification
- DQL( Data query language ): Query statement , be-all select sentence
- DML( Data operation language ):insert , delete , update , On the table data Conduct Additions and deletions
- DDL( Data definition language ):create , drop , alter Counter table structure Of Additions and deletions
- TCL( Transaction control language ):commit Submit data ,rollback Undo Data Transaction
- DCL( Data control language ):grant to grant authorization ,revoke Revocation of authority, etc
3.1.3 Basic statement
Check the library :
- show databases;
- select schema_name from information_schema.schemata;
- create database + Library name ;
- drop database + Library name ;
- use + Library name ;
- show tables;
- select table_name from information_schema.tables where table_schema='securit
- select table_name from information_schema.tables where table_schema=database Basic functions
- select * from users;
- select column_name from information_schema.columns where table_name='users'
- select username,password from security.users;
3.1.4 Basic functions
Database installation 、 route , user Information | |
version() | Mysql Database version |
database() | Current database name |
user() | The user name of the database |
current_user() | Current user name |
session_user() | The user name of the database connected to |
system_user() | System user name |
@@datadir() | Storage path of database file |
@@version_compile_os | Operating system version |
@@basedir | Database installation directory |
String length 、 Intercept | |
length() | Returns the length of the string |
substring(a,b,c) | Intercepting string |
substr(a,b,c) | Intercepting string |
mid(a,b,c) | Intercepting string |
Three parameters :a. Intercepted string b. Intercept start position c. length | |
left(a,b) | Take... From the left a Before b position , Correct return 1, Erroneous return 0 |
Special handling of strings | |
ord() | return ASCII code |
ascii('a') | Alphabet a Convert to ASCII value |
rand() | return 0~1 Between random floating-point numbers |
round() | Returns the latest integer value |
md5() | return MD5 value |
hex() | Converts a string to hexadecimal |
unhex() | hex() Reverse operation of |
floor(x) | Return is no greater than x Maximum integer for |
load_file() | Read the file , Returns the contents of the file as a string |
sleep(a) | A dead sleep a second |
if(true,t,f) | The judgment sentence is true , Execute the first , Otherwise, the second |
find_in_set() | Returns the position of the string in the string list |
benchmark() | Specifies the number of times the statement is executed |
name_const() | Return table as result |
3.1.5 Import data
When you want to import a more Or you want to execute in batches sql When the sentence is , have access to mysql Medium source
边栏推荐
- 注意力机制原理
- Flink task exit process and failover mechanism
- Variables, process control and cursors (MySQL)
- 海思3559万能平台搭建:RTSP实时播放的支持
- .net中 接口可以有默认实现了
- About Confidence Intervals
- What is Ba? How about Ba? What is the relationship between Ba and Bi?
- [safe office and productivity application] Shanghai daoning provides you with onlyoffice download, trial and tutorial
- VHDL实现任意大小矩阵乘法运算
- RestClould ETL 社区版六月精选问答
猜你喜欢

GPT-3当一作自己研究自己,已投稿,在线蹲一个同行评议

海思万能平台搭建:颜色空间转换YUV2RGB

Enumeration general interface & enumeration usage specification

自适应非欧表征广告检索系统AMCAD
![[safe office and productivity application] Shanghai daoning provides you with onlyoffice download, trial and tutorial](/img/58/d869939157669891f369fb274d32af.jpg)
[safe office and productivity application] Shanghai daoning provides you with onlyoffice download, trial and tutorial

卡尔曼滤波-1

Construction of Hisilicon universal platform: color space conversion YUV2RGB

QT opens a file and uses QFileDialog to obtain the file name, content, etc

【DPDK】dpdk样例源码解析之三:dpdk-l3fwd_001
![[leetcode] 450 and 98 (deletion and verification of binary search tree)](/img/89/dd7ac0d886e6bbca5a439386c576bb.jpg)
[leetcode] 450 and 98 (deletion and verification of binary search tree)
随机推荐
qt-线程等01概念
哈夫曼树基本概念
接口数据安全保证的10种方式
codeforces每日5题(均1700)-第七天
RestClould ETL 社区版六月精选问答
ubuntu20安裝redisjson記錄
概率论公式
C# Task拓展方法
Vernacular high concurrency (2)
VHDL实现任意大小矩阵乘法运算
HMS core machine learning service creates a new "sound" state of simultaneous interpreting translation, and AI makes international exchanges smoother
Kalman filter-1
pip只下载不安装
Jerry's transmitter crashed after the receiver shut down [chapter]
25. (ArcGIS API for JS) ArcGIS API for JS line modification line editing (sketchviewmodel)
Index of MySQL
本机mysql
Clock in during winter vacation
华为小米互“抄作业”
Function reentry, function overloading and function rewriting are understood by yourself