CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
rapid7

CoCalc provides the best real-time collaborative environment for Jupyter Notebooks, LaTeX documents, and SageMath, scalable from individual users to large groups and classes!

GitHub Repository: rapid7/metasploit-framework
Path: blob/master/spec/support/acceptance/session/python.rb
Views: 1904
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
"[-] FAILED: should return the proper directory separator"
158
]
159
}
160
}
161
},
162
{
163
name: "post/test/railgun",
164
platforms: [:linux, :osx, :windows],
165
skipped: false,
166
lines: {
167
linux: {
168
known_failures: []
169
},
170
osx: {
171
known_failures: []
172
},
173
windows: {
174
known_failures: []
175
}
176
}
177
},
178
{
179
name: "post/test/railgun_reverse_lookups",
180
platforms: [:linux, :osx, :windows],
181
skipped: false,
182
lines: {
183
linux: {
184
known_failures: []
185
},
186
osx: {
187
known_failures: []
188
},
189
windows: {
190
known_failures: []
191
}
192
}
193
},
194
{
195
name: "post/test/registry",
196
platforms: [
197
[
198
:linux,
199
{
200
skip: true,
201
reason: "Windows only test"
202
}
203
],
204
[
205
:osx,
206
{
207
skip: true,
208
reason: "Windows only test"
209
}
210
],
211
:windows
212
],
213
skipped: false,
214
lines: {
215
linux: {
216
known_failures: []
217
},
218
osx: {
219
known_failures: []
220
},
221
windows: {
222
known_failures: []
223
}
224
}
225
},
226
{
227
name: "post/test/search",
228
platforms: [:linux, :osx, :windows],
229
skipped: false,
230
lines: {
231
linux: {
232
known_failures: []
233
},
234
osx: {
235
known_failures: []
236
},
237
windows: {
238
known_failures: []
239
}
240
}
241
},
242
{
243
name: "post/test/unix",
244
platforms: [
245
:linux,
246
:osx,
247
[
248
:windows,
249
{
250
skip: true,
251
reason: "Unix only test"
252
}
253
]
254
],
255
skipped: false,
256
lines: {
257
linux: {
258
known_failures: []
259
},
260
osx: {
261
known_failures: []
262
},
263
windows: {
264
known_failures: []
265
}
266
}
267
}
268
]
269
}
270
end
271
272