strace

File Write

The data to be written appears amid the syscall log, quoted and with special characters escaped in octal notation. The string representation will be truncated, pick a value big enough instead of `999`. More generally, any binary that executes whatever syscall passing arbitrary data can be used in place of `strace - DATA`.

strace -s 999 -o /path/to/output-file strace - DATA

Shell

strace -o /dev/null /bin/sh

SUID override:

strace -o /dev/null /bin/sh -p