CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
rapid7

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.

GitHub Repository: rapid7/metasploit-framework
Path: blob/master/spec/support/acceptance/session/python.rb
Views: 11784
1
module Acceptance::Session
2
PYTHON_METERPRETER = {
3
payloads: [
4
{
5
name: "python/meterpreter_reverse_tcp",
6
extension: ".py",
7
platforms: [:osx, :linux, :windows],
8
execute_cmd: ["python", "${payload_path}"],
9
generate_options: {
10
'-f': "raw"
11
},
12
datastore: {
13
global: {},
14
module: {
15
MeterpreterTryToFork: false,
16
PythonMeterpreterDebug: true
17
}
18
}
19
}
20
],
21
module_tests: [
22
{
23
name: "post/test/services",
24
platforms: [
25
[
26
:linux,
27
{
28
skip: true,
29
reason: "Windows only test"
30
}
31
],
32
[
33
:osx,
34
{
35
skip: true,
36
reason: "Windows only test"
37
}
38
],
39
:windows
40
],
41
skipped: false,
42
lines: {
43
linux: {
44
known_failures: []
45
},
46
osx: {
47
known_failures: []
48
},
49
windows: {
50
known_failures: [
51
"[-] [should start W32Time] FAILED: should start W32Time",
52
"[-] [should start W32Time] Exception: RuntimeError: Could not open service. OpenServiceA error: FormatMessage failed to retrieve the error for value 0x6.",
53
"[-] [should stop W32Time] FAILED: should stop W32Time",
54
"[-] [should stop W32Time] Exception: RuntimeError: Could not open service. OpenServiceA error: FormatMessage failed to retrieve the error for value 0x6.",
55
"[-] [should list services] FAILED: should list services",
56
"[-] [should list services] Exception: NoMethodError: undefined method `service' for nil:NilClass",
57
"[-] [should return info on a given service winmgmt] FAILED: should return info on a given service winmgmt",
58
"[-] [should return info on a given service winmgmt] Exception: NoMethodError: undefined method `service' for nil:NilClass",
59
"[-] FAILED: should create a service testes",
60
"[-] [should return info on the newly-created service testes] FAILED: should return info on the newly-created service testes",
61
"[-] [should return info on the newly-created service testes] Exception: NoMethodError: undefined method `service' for nil:NilClass",
62
"[-] [should delete the new service testes] FAILED: should delete the new service testes",
63
"[-] [should delete the new service testes] Exception: RuntimeError: Could not open service. OpenServiceA error: FormatMessage failed to retrieve the error for value 0x6.",
64
"[-] [should return status on a given service winmgmt] FAILED: should return status on a given service winmgmt",
65
"[-] [should return status on a given service winmgmt] Exception: RuntimeError: Could not open service. OpenServiceA error: FormatMessage failed to retrieve the error for value 0x6.",
66
"[-] [should modify config on a given service] FAILED: should modify config on a given service",
67
"[-] [should modify config on a given service] Exception: RuntimeError: Could not open service. OpenServiceA error: FormatMessage failed to retrieve the error for value 0x6.",
68
"[-] FAILED: should start a disabled service",
69
"[-] [should restart a started service W32Time] FAILED: should restart a started service W32Time",
70
"[-] [should restart a started service W32Time] Exception: RuntimeError: Could not open service. OpenServiceA error: FormatMessage failed to retrieve the error for value 0x6."
71
]
72
}
73
}
74
},
75
{
76
name: "post/test/cmd_exec",
77
platforms: [:linux, :osx, :windows],
78
skipped: false,
79
lines: {
80
linux: {
81
known_failures: []
82
},
83
osx: {
84
known_failures: []
85
},
86
windows: {
87
known_failures: []
88
}
89
}
90
},
91
{
92
name: "post/test/extapi",
93
platforms: [:linux, :osx, :windows],
94
skipped: false,
95
lines: {
96
linux: {
97
known_failures: []
98
},
99
osx: {
100
known_failures: []
101
},
102
windows: {
103
known_failures: [
104
"[-] [should return clipboard jpg dimensions] FAILED: should return clipboard jpg dimensions",
105
"[-] [should return clipboard jpg dimensions] Exception: NoMethodError: undefined method `clipboard' for nil:NilClass",
106
"[-] [should download clipboard jpg data] FAILED: should download clipboard jpg data",
107
"[-] [should download clipboard jpg data] Exception: NoMethodError: undefined method `clipboard' for nil:NilClass"
108
]
109
}
110
}
111
},
112
{
113
name: "post/test/file",
114
platforms: [:linux, :osx, :windows],
115
skipped: false,
116
lines: {
117
linux: {
118
known_failures: []
119
},
120
osx: {
121
known_failures: []
122
},
123
windows: {
124
known_failures: []
125
}
126
}
127
},
128
{
129
name: "post/test/get_env",
130
platforms: [:linux, :osx, :windows],
131
skipped: false,
132
lines: {
133
linux: {
134
known_failures: []
135
},
136
osx: {
137
known_failures: []
138
},
139
windows: {
140
known_failures: []
141
}
142
}
143
},
144
{
145
name: "post/test/meterpreter",
146
platforms: [:linux, :osx, :windows],
147
skipped: false,
148
lines: {
149
linux: {
150
known_failures: []
151
},
152
osx: {
153
known_failures: []
154
},
155
windows: {
156
known_failures: [
157
]
158
}
159
}
160
},
161
{
162
name: "post/test/railgun",
163
platforms: [:linux, :osx, :windows],
164
skipped: false,
165
lines: {
166
linux: {
167
known_failures: []
168
},
169
osx: {
170
known_failures: []
171
},
172
windows: {
173
known_failures: []
174
}
175
}
176
},
177
{
178
name: "post/test/railgun_reverse_lookups",
179
platforms: [:linux, :osx, :windows],
180
skipped: false,
181
lines: {
182
linux: {
183
known_failures: []
184
},
185
osx: {
186
known_failures: []
187
},
188
windows: {
189
known_failures: []
190
}
191
}
192
},
193
{
194
name: "post/test/registry",
195
platforms: [
196
[
197
:linux,
198
{
199
skip: true,
200
reason: "Windows only test"
201
}
202
],
203
[
204
:osx,
205
{
206
skip: true,
207
reason: "Windows only test"
208
}
209
],
210
:windows
211
],
212
skipped: false,
213
lines: {
214
linux: {
215
known_failures: []
216
},
217
osx: {
218
known_failures: []
219
},
220
windows: {
221
known_failures: []
222
}
223
}
224
},
225
{
226
name: "post/test/search",
227
platforms: [:linux, :osx, :windows],
228
skipped: false,
229
lines: {
230
linux: {
231
known_failures: []
232
},
233
osx: {
234
known_failures: []
235
},
236
windows: {
237
known_failures: []
238
}
239
}
240
},
241
{
242
name: "post/test/unix",
243
platforms: [
244
:linux,
245
:osx,
246
[
247
:windows,
248
{
249
skip: true,
250
reason: "Unix only test"
251
}
252
]
253
],
254
skipped: false,
255
lines: {
256
linux: {
257
known_failures: []
258
},
259
osx: {
260
known_failures: []
261
},
262
windows: {
263
known_failures: []
264
}
265
}
266
}
267
]
268
}
269
end
270
271