1
0
Fork 0
mirror of https://github.com/swisskyrepo/PayloadsAllTheThings.git synced 2024-05-17 23:56:12 +02:00

Remove unnecessary condition to extract columns

Since we retrieve only the rows with a specific table name `name ='table_name', the table name won't start with `sqlite_` .
Thus, we can remove the unnecessary condition.
This commit is contained in:
marcan2020 2020-11-17 19:59:11 -05:00 committed by GitHub
parent 8863292545
commit 3cf44386da
Signed by: GitHub
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -37,7 +37,7 @@ Use limit X+1 offset X, to extract all tables.
## Integer/String based - Extract column name
```sql
SELECT sql FROM sqlite_master WHERE type!='meta' AND sql NOT NULL AND name NOT LIKE 'sqlite_%' AND name ='table_name'
SELECT sql FROM sqlite_master WHERE type!='meta' AND sql NOT NULL AND name ='table_name'
```
For a clean output