linux/x86 - exit0 6 bytes

2015-05-04T00:00:00
ID EDB-ID:36908
Type exploitdb
Reporter Febriyanto Nugroho
Modified 2015-05-04T00:00:00

Description

linux/x86 - exit(0) (6 bytes). Shellcode exploit for lin_x86 platform

                                        
                                            /*
 * linux/x86 exit(0) - 6 bytes
 * Febriyanto Nugroho
 */ 

#include <stdio.h>

char shellcode[] = "\xf7\xf0"
                   "\xcd\x80"
                   "\xeb\xfa";

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