当前位置:网站首页>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
边栏推荐
- QT item table new column name setting requirement exercise (find the number and maximum value of the array disappear)
- 卡尔曼滤波-1
- Lab1 configuration script
- 1200.Minimum Absolute Difference
- About Confidence Intervals
- My brave way to line -- elaborate on what happens when the browser enters the URL
- Jerry's ble exiting Bluetooth mode card machine [chapter]
- . Net interface can be implemented by default
- 23. (ArcGIS API for JS) ArcGIS API for JS ellipse collection (sketchviewmodel)
- Docker部署Mysql8的实现步骤
猜你喜欢
装饰设计企业网站管理系统源码(含手机版源码)
代码质量管理
My brave way to line -- elaborate on what happens when the browser enters the URL
源代码保密的意义和措施
The latest 2022 review of "small sample deep learning image recognition"
Basic concepts of Huffman tree
20. (ArcGIS API for JS) ArcGIS API for JS surface collection (sketchviewmodel)
1200.Minimum Absolute Difference
Introduction to opensea platform developed by NFT trading platform (I)
Do you know the five most prominent advantages of E-bidding?
随机推荐
Free PHP online decryption tool source code v1.2
校招行测笔试-数量关系
ubuntu20安装redisjson记录
[C language] question set of IX
Kalman filter-1
1200.Minimum Absolute Difference
RestClould ETL 社区版六月精选问答
Que savez - vous de la sérialisation et de l'anti - séquence?
Not All Points Are Equal Learning Highly Efficient Point-based Detectors for 3D LiDAR Point
It's too convenient. You can complete the code release and approval by nailing it!
Numpy中排序操作partition,argpartition,sort,argsort
About Tolerance Intervals
华为小米互“抄作业”
GPT-3当一作自己研究自己,已投稿,在线蹲一个同行评议
20.(arcgis api for js篇)arcgis api for js面采集(SketchViewModel)
Install torch 0.4.1
About Tolerance Intervals
密码学系列之:在线证书状态协议OCSP详解
Depth analysis of compilation constants, classloader classes, and system class loaders
QT 项目 表格新建列名称设置 需求练习(找数组消失的数字、最大值)