Skip to content

Commit 1a4d6d0

Browse files
authored
Create test
1 parent 514c052 commit 1a4d6d0

1 file changed

Lines changed: 53 additions & 0 deletions

File tree

test

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
//shellcode for execute system("/usr/bin/echo go home to study the spirit of the 19th CBC National Congress")
2+
"\x31\xc9"
3+
"\xf7\xe1"
4+
"\xb0\x0b"
5+
"\x51"
6+
"\x68\x65\x73\x73\x20"
7+
"\x68\x6f\x6e\x67\x72"
8+
"\x68\x61\x6c\x20\x43"
9+
"\x68\x74\x69\x6f\x6e"
10+
"\x68\x43\x20\x4e\x61"
11+
"\x68\x68\x20\x43\x42"
12+
"\x68\x20\x31\x39\x74"
13+
"\x68\x20\x74\x68\x65"
14+
"\x68\x74\x20\x6f\x66"
15+
"\x68\x70\x69\x72\x69"
16+
"\x68\x68\x65\x20\x73"
17+
"\x68\x64\x79\x20\x74"
18+
"\x68\x20\x73\x74\x75"
19+
"\x68\x65\x20\x74\x6f"
20+
"\x68\x20\x68\x6f\x6d"
21+
"\x68\x6f\x20\x67\x6f"
22+
"\x68\x2f\x65\x63\x68"
23+
"\x68\x2f\x62\x69\x6e"
24+
"\x68\x2f\x75\x73\x72"
25+
"\x89\xe3"
26+
"\xcd\x80"
27+
28+
//asm for execute system("/usr/bin/echo go home to study the spirit of the 19th CBC National Congress")
29+
xor ecx,ecx #0->ecx
30+
mul ecx #eax*ecx->64-bit 0->edx-eax
31+
mov al,0b #0x0b->al
32+
push ecx #push end char"\x00"
33+
push 657373 #push "res"
34+
push 6f6e6772 #push "ongr"
35+
push 616c2043 #push "al C"
36+
push 74696f6e #push "tion"
37+
push 43204e61 #push "C Na"
38+
push 68204342 #push "h CB"
39+
push 20313974 #push " 19t"
40+
push 20746865 #push " the"
41+
push 74206f66 #push "t of"
42+
push 70697269 #push "piri"
43+
push 68652073 #push "he s"
44+
push 64792074 #push "dy t"
45+
push 20737475 #push " stu"
46+
push 6520746f #push "e to"
47+
push 20686f6d #push " hom"
48+
push 6f20676f #push "o go"
49+
push 2f656368 #push "/ech"
50+
push 2f62696e #push "/bin"
51+
push 2f757372 #push "/usr"
52+
mov ebx,esp #the address of cmd string "/usr/bin/echo go home to study the spirit of the 19th CBC National Congress"->ebx
53+
int 80 #invoke system call

0 commit comments

Comments
 (0)