Files
Shellcode-Lab/x86_32/0x1_SycallBasics/Example_Code/skeleton_oldstyle.c
2017-02-01 13:15:17 +01:00

16 lines
215 B
C

#include <stdio.h>
#include <string.h>
#include <unistd.h>
char shellcode[] = "";
int main(void)
{
int *ret;
printf("%d\n",strlen(shellcode));
ret = (int *)&ret+2;
*ret = (int)shellcode;
return 0;
}