skeleton fix

This commit is contained in:
Marco Lux
2017-03-09 21:18:26 +01:00
parent 85f81ca4dd
commit 885e2a18a7

View File

@@ -1,15 +1,12 @@
#include <stdio.h> #include <stdio.h>
#include <string.h>
#include <unistd.h>
char shellcode[] = ""; unsigned char shellcode[] = "";
int main(void) main()
{ {
int *ret; printf("Shellcode Length: %d\n", sizeof(shellcode) - 1);
int (*ret)() = (int(*)())shellcode;
printf("%d\n",strlen(shellcode)); ret();
ret = (int *)&ret+2;
*ret = (int)shellcode;
return 0;
} }