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/command_shell/cmd.rb
Views: 11784
1
module Acceptance::Session
2
CMD = {
3
payloads: [
4
{
5
name: 'windows/x64/shell_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
}
17
}
18
],
19
module_tests: [
20
{
21
name: 'post/test/cmd_exec',
22
platforms: [
23
[
24
:linux,
25
{
26
skip: true,
27
reason: 'Payload not compiled for platform'
28
}
29
],
30
[
31
:osx,
32
{
33
skip: true,
34
reason: 'Payload not compiled for platform'
35
}
36
],
37
:windows
38
],
39
skipped: false,
40
lines: {
41
linux: {
42
known_failures: []
43
},
44
osx: {
45
known_failures: []
46
},
47
windows: {
48
known_failures: []
49
}
50
}
51
},
52
{
53
name: 'post/test/file',
54
platforms: [
55
[
56
:linux,
57
{
58
skip: true,
59
reason: 'Payload not compiled for platform'
60
}
61
],
62
[
63
:osx,
64
{
65
skip: true,
66
reason: 'Payload not compiled for platform'
67
}
68
],
69
:windows
70
],
71
skipped: false,
72
lines: {
73
linux: {
74
known_failures: []
75
},
76
osx: {
77
known_failures: []
78
},
79
windows: {
80
known_failures: []
81
}
82
}
83
},
84
{
85
name: 'post/test/get_env',
86
platforms: [
87
[
88
:linux,
89
{
90
skip: true,
91
reason: 'Payload not compiled for platform'
92
}
93
],
94
[
95
:osx,
96
{
97
skip: true,
98
reason: 'Payload not compiled for platform'
99
}
100
],
101
:windows
102
],
103
skipped: false,
104
lines: {
105
linux: {
106
known_failures: []
107
},
108
osx: {
109
known_failures: []
110
},
111
windows: {
112
known_failures: []
113
}
114
}
115
},
116
{
117
name: 'post/test/registry',
118
platforms: [
119
[
120
:linux,
121
{
122
skip: true,
123
reason: 'Windows only test'
124
}
125
],
126
[
127
:osx,
128
{
129
skip: true,
130
reason: 'Windows only test'
131
}
132
],
133
:windows
134
],
135
skipped: false,
136
lines: {
137
linux: {
138
known_failures: []
139
},
140
osx: {
141
known_failures: []
142
},
143
windows: {
144
known_failures: []
145
}
146
}
147
}
148
]
149
}
150
end
151
152