mirror of
https://github.com/GTFOBins/GTFOBins.github.io
synced 2024-12-25 14:30:07 +01:00
Fix and simplify gcc file delete
This commit is contained in:
parent
51e8892fec
commit
c3f37d9e09
@ -4,11 +4,12 @@ functions:
|
|||||||
- code: |
|
- code: |
|
||||||
LFILE=file_to_read
|
LFILE=file_to_read
|
||||||
gcc -x c -E "$LFILE"
|
gcc -x c -E "$LFILE"
|
||||||
|
file-write: # XXX this should be file-delete
|
||||||
|
- code: |
|
||||||
|
LFILE=file_to_delete
|
||||||
|
gcc -xc /dev/null -o $LFILE
|
||||||
shell:
|
shell:
|
||||||
- code: gcc -wrapper /bin/sh,-s .
|
- code: gcc -wrapper /bin/sh,-s .
|
||||||
sudo:
|
sudo:
|
||||||
- code: sudo gcc -wrapper /bin/sh,-s .
|
- code: sudo gcc -wrapper /bin/sh,-s .
|
||||||
file-delete:
|
|
||||||
- code: |
|
|
||||||
echo "int main(){printf(\" Hello \");return 0;}" > /tmp/oye.c ; gcc -nostdlib /tmp/oye.c -o [FILE-TO-DELETE] .
|
|
||||||
---
|
---
|
||||||
|
Loading…
Reference in New Issue
Block a user