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/linux.rb
Views: 11784
1
module Acceptance::Session
2
LINUX = {
3
payloads: [
4
{
5
name: "cmd/unix/reverse_bash",
6
extension: ".sh",
7
platforms: [:linux],
8
executable: true,
9
execute_cmd: ["sh ${payload_path}"],
10
generate_options: {
11
'-f': "raw"
12
},
13
datastore: {
14
global: {},
15
module: {}
16
}
17
},
18
],
19
module_tests: [
20
{
21
name: "post/test/services",
22
platforms: [
23
[
24
:linux,
25
{
26
skip: true,
27
reason: "Windows only test"
28
}
29
],
30
[
31
:osx,
32
{
33
skip: true,
34
reason: "Windows only test"
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/cmd_exec",
54
platforms: [
55
:linux,
56
:osx,
57
[
58
:windows,
59
{
60
skip: true,
61
reason: "Payload not compiled for platform"
62
}
63
]
64
],
65
skipped: false,
66
lines: {
67
linux: {
68
known_failures: []
69
},
70
osx: {
71
known_failures: []
72
},
73
windows: {
74
known_failures: []
75
}
76
}
77
},
78
{
79
name: "post/test/file",
80
platforms: [
81
:linux,
82
:osx,
83
[
84
:windows,
85
{
86
skip: true,
87
reason: "Payload not compiled for platform"
88
}
89
]
90
],
91
skipped: false,
92
lines: {
93
linux: {
94
known_failures: []
95
},
96
osx: {
97
known_failures: []
98
},
99
windows: {
100
known_failures: []
101
}
102
}
103
},
104
{
105
name: "post/test/get_env",
106
platforms: [
107
:linux,
108
:osx,
109
[
110
:windows,
111
{
112
skip: true,
113
reason: "Payload not compiled for platform"
114
}
115
]
116
],
117
skipped: false,
118
lines: {
119
linux: {
120
known_failures: []
121
},
122
osx: {
123
known_failures: []
124
},
125
windows: {
126
known_failures: []
127
}
128
}
129
},
130
{
131
name: "post/test/unix",
132
platforms: [
133
:linux,
134
:osx,
135
[
136
:windows,
137
{
138
skip: true,
139
reason: "Unix only test"
140
}
141
]
142
],
143
skipped: false,
144
lines: {
145
linux: {
146
known_failures: []
147
},
148
osx: {
149
known_failures: []
150
},
151
windows: {
152
known_failures: []
153
}
154
}
155
}
156
]
157
}
158
end
159
160