当前位置:网站首页>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
边栏推荐
- CMB's written test - quantitative relationship
- PHP lightweight Movie Video Search Player source code
- 25. (ArcGIS API for JS) ArcGIS API for JS line modification line editing (sketchviewmodel)
- 【DPDK】dpdk样例源码解析之三:dpdk-l3fwd_001
- 【C语言】 题集 of Ⅸ
- Calculation of time and space complexity (notes of runners)
- 亚像素级角点检测Opencv-cornerSubPix
- Principle of attention mechanism
- Experience design details
- About Estimation Statistics
猜你喜欢
![[leetcode] 700 and 701 (search and insert of binary search tree)](/img/b0/6aa9185f02fb1905fc59e6b329f7c3.jpg)
[leetcode] 700 and 701 (search and insert of binary search tree)

Basic concepts of Huffman tree

Ubuntu 20 installation des enregistrements redisjson

【DPDK】dpdk样例源码解析之三:dpdk-l3fwd_001

装饰设计企业网站管理系统源码(含手机版源码)

PHP lightweight Movie Video Search Player source code

树莓派设置wifi自动连接

CVPR 2022 best paper candidate | pip: six inertial sensors realize whole body dynamic capture and force estimation

How to replace the backbone of the model

【安全攻防】序列化與反序列,你了解多少?
随机推荐
VHDL implementation of single cycle CPU design
Jerry's FM mode mono or stereo selection setting [chapter]
Under the tide of "going from virtual to real", Baidu AI Cloud is born from real
[dpdk] dpdk sample source code analysis III: dpdk-l3fwd_ 001
复杂因子计算优化案例:深度不平衡、买卖压力指标、波动率计算
海思3559万能平台搭建:RTSP实时播放的支持
树莓派设置静态ip
About Confidence Intervals
Vernacular high concurrency (2)
A 股指数成分数据 API 数据接口
树莓派设置wifi自动连接
. Net interface can be implemented by default
Hisilicon 3559 universal platform construction: RTSP real-time playback support
SSL certificate deployment
The latest 2022 review of "small sample deep learning image recognition"
Search of linear table
23.(arcgis api for js篇)arcgis api for js椭圆采集(SketchViewModel)
哈夫曼树基本概念
Sorting operation partition, argpartition, sort, argsort in numpy
MySQL storage engine