当前位置:网站首页>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
边栏推荐
- 自适应非欧表征广告检索系统AMCAD
- Baidu map JS development, open a blank, bmapgl is not defined, err_ FILE_ NOT_ FOUND
- SSL证书部署
- Flutter3.0了,小程序不止于移动应用跨端运行
- VHDL实现单周期CPU设计
- 校招行测笔试-数量关系
- Can the applet run in its own app and realize live broadcast and connection?
- 25.(arcgis api for js篇)arcgis api for js线修改线编辑(SketchViewModel)
- 【DPDK】dpdk样例源码解析之三:dpdk-l3fwd_001
- 复杂因子计算优化案例:深度不平衡、买卖压力指标、波动率计算
猜你喜欢

我的勇敢对线之路--详细阐述,浏览器输入URL发生了什么

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

Set WiFi automatic connection for raspberry pie

Under the tide of "going from virtual to real", Baidu AI Cloud is born from real
![[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

VHDL implementation of arbitrary size matrix addition operation

海思3559万能平台搭建:RTSP实时播放的支持

25. (ArcGIS API for JS) ArcGIS API for JS line modification line editing (sketchviewmodel)
![[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)

Probability formula
随机推荐
腾讯云原生数据库TDSQL-C入选信通院《云原生产品目录》
About Tolerance Intervals
[security attack and Defense] how much do you know about serialization and deserialization?
GPT-3当一作自己研究自己,已投稿,在线蹲一个同行评议
The latest 2022 review of "small sample deep learning image recognition"
QT thread and other 01 concepts
我的勇敢对线之路--详细阐述,浏览器输入URL发生了什么
Not All Points Are Equal Learning Highly Efficient Point-based Detectors for 3D LiDAR Point
Baidu map JS development, open a blank, bmapgl is not defined, err_ FILE_ NOT_ FOUND
Set WiFi automatic connection for raspberry pie
24.(arcgis api for js篇)arcgis api for js点修改点编辑(SketchViewModel)
codeforces每日5题(均1700)-第七天
Introduction to opensea platform developed by NFT trading platform (I)
R data analysis: how to predict Cox model and reproduce high score articles
Calculation of time and space complexity (notes of runners)
Do you know the five most prominent advantages of E-bidding?
MySQL的索引
Variables, process control and cursors (MySQL)
Que savez - vous de la sérialisation et de l'anti - séquence?
【安全攻防】序列化与反序列,你了解多少?