Files
shellcode/x86_64/Example_Code/skeleton.c
Daniel Ashton cc0cee84ff init
2016-05-30 09:06:47 +02:00

18 lines
307 B
C

/* shellcode-lab 64Bit
dash@hack4.org
use -z execstack
or set char code to const
*/
#include <stdio.h>
#include <string.h>
unsigned char code[] ="shellcode wants to be placed here!";
main()
{
printf("Shellcode Len: %d\n", (int)strlen(code));
int (*ret)() = (int(*)())code;
ret();
}