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/mettle.rb
Views: 11784
1
module Acceptance::Session
2
METTLE_METERPRETER = {
3
payloads: [
4
{
5
name: "linux/x64/meterpreter/reverse_tcp",
6
extension: "",
7
platforms: [:linux],
8
executable: true,
9
execute_cmd: ["${payload_path}"],
10
generate_options: {
11
'-f': "elf"
12
},
13
datastore: {
14
global: {},
15
module: {
16
MeterpreterTryToFork: false,
17
MeterpreterDebugBuild: true
18
}
19
}
20
},
21
{
22
name: "osx/x64/meterpreter_reverse_tcp",
23
extension: "",
24
platforms: [:osx],
25
executable: true,
26
execute_cmd: ["${payload_path}"],
27
generate_options: {
28
'-f': "macho"
29
},
30
datastore: {
31
global: {},
32
module: {
33
MeterpreterTryToFork: false,
34
MeterpreterDebugBuild: true
35
}
36
}
37
}
38
],
39
module_tests: [
40
{
41
name: "post/test/services",
42
platforms: [
43
[
44
:linux,
45
{
46
skip: true,
47
reason: "Windows only test"
48
}
49
],
50
[
51
:osx,
52
{
53
skip: true,
54
reason: "Windows only test"
55
}
56
],
57
:windows
58
],
59
skipped: false,
60
lines: {
61
linux: {
62
known_failures: []
63
},
64
osx: {
65
known_failures: []
66
},
67
windows: {
68
known_failures: []
69
}
70
}
71
},
72
{
73
name: "post/test/cmd_exec",
74
platforms: [
75
:linux,
76
:osx,
77
[
78
:windows,
79
{
80
skip: true,
81
reason: "Payload not compiled for platform"
82
}
83
]
84
],
85
skipped: false,
86
lines: {
87
linux: {
88
known_failures: []
89
},
90
osx: {
91
known_failures: []
92
},
93
windows: {
94
known_failures: []
95
}
96
}
97
},
98
{
99
name: "post/test/extapi",
100
platforms: [
101
:linux,
102
:osx,
103
[
104
:windows,
105
{
106
skip: true,
107
reason: "Payload not compiled for platform"
108
}
109
]
110
],
111
skipped: false,
112
lines: {
113
linux: {
114
known_failures: []
115
},
116
osx: {
117
known_failures: []
118
},
119
windows: {
120
known_failures: []
121
}
122
}
123
},
124
{
125
name: "post/test/file",
126
platforms: [
127
:linux,
128
:osx,
129
[
130
:windows,
131
{
132
skip: true,
133
reason: "Payload not compiled for platform"
134
}
135
]
136
],
137
skipped: false,
138
lines: {
139
linux: {
140
known_failures: []
141
},
142
osx: {
143
known_failures: []
144
},
145
windows: {
146
known_failures: []
147
}
148
}
149
},
150
{
151
name: "post/test/get_env",
152
platforms: [
153
:linux,
154
:osx,
155
[
156
:windows,
157
{
158
skip: true,
159
reason: "Payload not compiled for platform"
160
}
161
]
162
],
163
skipped: false,
164
lines: {
165
linux: {
166
known_failures: []
167
},
168
osx: {
169
known_failures: []
170
},
171
windows: {
172
known_failures: []
173
}
174
}
175
},
176
{
177
name: "post/test/meterpreter",
178
platforms: [
179
:linux,
180
:osx,
181
[
182
:windows,
183
{
184
skip: true,
185
reason: "Payload not compiled for platform"
186
}
187
]
188
],
189
skipped: false,
190
lines: {
191
linux: {
192
known_failures: []
193
},
194
osx: {
195
known_failures: [
196
"[-] FAILED: should return network interfaces",
197
"[-] FAILED: should have an interface that matches session_host"
198
]
199
},
200
windows: {
201
known_failures: []
202
}
203
}
204
},
205
{
206
name: "post/test/railgun",
207
platforms: [
208
:linux,
209
:osx,
210
[
211
:windows,
212
{
213
skip: true,
214
reason: "Payload not compiled for platform"
215
}
216
]
217
],
218
skipped: false,
219
lines: {
220
linux: {
221
known_failures: []
222
},
223
osx: {
224
known_failures: []
225
},
226
windows: {
227
known_failures: []
228
}
229
}
230
},
231
{
232
name: "post/test/railgun_reverse_lookups",
233
platforms: [
234
:linux,
235
:osx,
236
[
237
:windows,
238
{
239
skip: true,
240
reason: "Payload not compiled for platform"
241
}
242
]
243
],
244
skipped: false,
245
lines: {
246
linux: {
247
known_failures: []
248
},
249
osx: {
250
known_failures: []
251
},
252
windows: {
253
known_failures: []
254
}
255
}
256
},
257
{
258
name: "post/test/registry",
259
platforms: [
260
[
261
:linux,
262
{
263
skip: true,
264
reason: "Windows only test"
265
}
266
],
267
[
268
:osx,
269
{
270
skip: true,
271
reason: "Windows only test"
272
}
273
],
274
:windows
275
],
276
skipped: false,
277
lines: {
278
linux: {
279
known_failures: []
280
},
281
osx: {
282
known_failures: []
283
},
284
windows: {
285
known_failures: []
286
}
287
}
288
},
289
{
290
name: "post/test/search",
291
platforms: [
292
:linux,
293
[
294
:osx,
295
{
296
skip: true,
297
reason: "skipped - test/search hangs in osx and CPU spikes to >300%"
298
}
299
],
300
[
301
:windows,
302
{
303
skip: true,
304
reason: "Payload not compiled for platform"
305
}
306
]
307
],
308
skipped: false,
309
lines: {
310
linux: {
311
known_failures: []
312
},
313
osx: {
314
known_failures: []
315
},
316
windows: {
317
known_failures: []
318
}
319
}
320
},
321
{
322
name: "post/test/unix",
323
platforms: [
324
:linux,
325
:osx,
326
[
327
:windows,
328
{
329
skip: true,
330
reason: "Unix only test"
331
}
332
]
333
],
334
skipped: false,
335
lines: {
336
linux: {
337
known_failures: []
338
},
339
osx: {
340
known_failures: []
341
},
342
windows: {
343
known_failures: []
344
}
345
}
346
}
347
]
348
}
349
end
350
351