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