skeleton fix
This commit is contained in:
@@ -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;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user