radare2/binr/preload/trap-linux-x86-64.asm

10 lines
100 B
NASM

.os linux
.arch x86
.bits 64
mov rax, $sys.getpid
syscall
mov rdi, $sys.kill
xchg rax, rdi
syscall