350 lines
7.0 KiB
Ruby
350 lines
7.0 KiB
Ruby
module Acceptance::Meterpreter
|
|
METTLE_METERPRETER = {
|
|
payloads: [
|
|
{
|
|
name: "linux/x64/meterpreter/reverse_tcp",
|
|
extension: "",
|
|
platforms: [:linux],
|
|
executable: true,
|
|
execute_cmd: ["${payload_path}"],
|
|
generate_options: {
|
|
'-f': "elf"
|
|
},
|
|
datastore: {
|
|
global: {},
|
|
module: {
|
|
MeterpreterTryToFork: false,
|
|
MeterpreterDebugBuild: true
|
|
}
|
|
}
|
|
},
|
|
{
|
|
name: "osx/x64/meterpreter_reverse_tcp",
|
|
extension: "",
|
|
platforms: [:osx],
|
|
executable: true,
|
|
execute_cmd: ["${payload_path}"],
|
|
generate_options: {
|
|
'-f': "macho"
|
|
},
|
|
datastore: {
|
|
global: {},
|
|
module: {
|
|
MeterpreterTryToFork: false,
|
|
MeterpreterDebugBuild: true
|
|
}
|
|
}
|
|
}
|
|
],
|
|
module_tests: [
|
|
{
|
|
name: "post/test/services",
|
|
platforms: [
|
|
[
|
|
:linux,
|
|
{
|
|
skip: true,
|
|
reason: "Windows only test"
|
|
}
|
|
],
|
|
[
|
|
:osx,
|
|
{
|
|
skip: true,
|
|
reason: "Windows only test"
|
|
}
|
|
],
|
|
:windows
|
|
],
|
|
skipped: false,
|
|
lines: {
|
|
linux: {
|
|
known_failures: []
|
|
},
|
|
osx: {
|
|
known_failures: []
|
|
},
|
|
windows: {
|
|
known_failures: []
|
|
}
|
|
}
|
|
},
|
|
{
|
|
name: "post/test/cmd_exec",
|
|
platforms: [
|
|
:linux,
|
|
:osx,
|
|
[
|
|
:windows,
|
|
{
|
|
skip: true,
|
|
reason: "Payload not compiled for platform"
|
|
}
|
|
]
|
|
],
|
|
skipped: false,
|
|
lines: {
|
|
linux: {
|
|
known_failures: []
|
|
},
|
|
osx: {
|
|
known_failures: []
|
|
},
|
|
windows: {
|
|
known_failures: []
|
|
}
|
|
}
|
|
},
|
|
{
|
|
name: "post/test/extapi",
|
|
platforms: [
|
|
:linux,
|
|
:osx,
|
|
[
|
|
:windows,
|
|
{
|
|
skip: true,
|
|
reason: "Payload not compiled for platform"
|
|
}
|
|
]
|
|
],
|
|
skipped: false,
|
|
lines: {
|
|
linux: {
|
|
known_failures: []
|
|
},
|
|
osx: {
|
|
known_failures: []
|
|
},
|
|
windows: {
|
|
known_failures: []
|
|
}
|
|
}
|
|
},
|
|
{
|
|
name: "post/test/file",
|
|
platforms: [
|
|
:linux,
|
|
:osx,
|
|
[
|
|
:windows,
|
|
{
|
|
skip: true,
|
|
reason: "Payload not compiled for platform"
|
|
}
|
|
]
|
|
],
|
|
skipped: false,
|
|
lines: {
|
|
linux: {
|
|
known_failures: []
|
|
},
|
|
osx: {
|
|
known_failures: []
|
|
},
|
|
windows: {
|
|
known_failures: []
|
|
}
|
|
}
|
|
},
|
|
{
|
|
name: "post/test/get_env",
|
|
platforms: [
|
|
:linux,
|
|
:osx,
|
|
[
|
|
:windows,
|
|
{
|
|
skip: true,
|
|
reason: "Payload not compiled for platform"
|
|
}
|
|
]
|
|
],
|
|
skipped: false,
|
|
lines: {
|
|
linux: {
|
|
known_failures: []
|
|
},
|
|
osx: {
|
|
known_failures: []
|
|
},
|
|
windows: {
|
|
known_failures: []
|
|
}
|
|
}
|
|
},
|
|
{
|
|
name: "post/test/meterpreter",
|
|
platforms: [
|
|
:linux,
|
|
:osx,
|
|
[
|
|
:windows,
|
|
{
|
|
skip: true,
|
|
reason: "Payload not compiled for platform"
|
|
}
|
|
]
|
|
],
|
|
skipped: false,
|
|
lines: {
|
|
linux: {
|
|
known_failures: []
|
|
},
|
|
osx: {
|
|
known_failures: [
|
|
"[-] FAILED: should return network interfaces",
|
|
"[-] FAILED: should have an interface that matches session_host"
|
|
]
|
|
},
|
|
windows: {
|
|
known_failures: []
|
|
}
|
|
}
|
|
},
|
|
{
|
|
name: "post/test/railgun",
|
|
platforms: [
|
|
:linux,
|
|
:osx,
|
|
[
|
|
:windows,
|
|
{
|
|
skip: true,
|
|
reason: "Payload not compiled for platform"
|
|
}
|
|
]
|
|
],
|
|
skipped: false,
|
|
lines: {
|
|
linux: {
|
|
known_failures: []
|
|
},
|
|
osx: {
|
|
known_failures: []
|
|
},
|
|
windows: {
|
|
known_failures: []
|
|
}
|
|
}
|
|
},
|
|
{
|
|
name: "post/test/railgun_reverse_lookups",
|
|
platforms: [
|
|
:linux,
|
|
:osx,
|
|
[
|
|
:windows,
|
|
{
|
|
skip: true,
|
|
reason: "Payload not compiled for platform"
|
|
}
|
|
]
|
|
],
|
|
skipped: false,
|
|
lines: {
|
|
linux: {
|
|
known_failures: []
|
|
},
|
|
osx: {
|
|
known_failures: []
|
|
},
|
|
windows: {
|
|
known_failures: []
|
|
}
|
|
}
|
|
},
|
|
{
|
|
name: "post/test/registry",
|
|
platforms: [
|
|
[
|
|
:linux,
|
|
{
|
|
skip: true,
|
|
reason: "Windows only test"
|
|
}
|
|
],
|
|
[
|
|
:osx,
|
|
{
|
|
skip: true,
|
|
reason: "Windows only test"
|
|
}
|
|
],
|
|
:windows
|
|
],
|
|
skipped: false,
|
|
lines: {
|
|
linux: {
|
|
known_failures: []
|
|
},
|
|
osx: {
|
|
known_failures: []
|
|
},
|
|
windows: {
|
|
known_failures: []
|
|
}
|
|
}
|
|
},
|
|
{
|
|
name: "post/test/search",
|
|
platforms: [
|
|
:linux,
|
|
[
|
|
:osx,
|
|
{
|
|
skip: true,
|
|
reason: "skipped - test/search hangs in osx and CPU spikes to >300%"
|
|
}
|
|
],
|
|
[
|
|
:windows,
|
|
{
|
|
skip: true,
|
|
reason: "Payload not compiled for platform"
|
|
}
|
|
]
|
|
],
|
|
skipped: false,
|
|
lines: {
|
|
linux: {
|
|
known_failures: []
|
|
},
|
|
osx: {
|
|
known_failures: []
|
|
},
|
|
windows: {
|
|
known_failures: []
|
|
}
|
|
}
|
|
},
|
|
{
|
|
name: "post/test/unix",
|
|
platforms: [
|
|
:linux,
|
|
:osx,
|
|
[
|
|
:windows,
|
|
{
|
|
skip: true,
|
|
reason: "Unix only test"
|
|
}
|
|
]
|
|
],
|
|
skipped: false,
|
|
lines: {
|
|
linux: {
|
|
known_failures: []
|
|
},
|
|
osx: {
|
|
known_failures: []
|
|
},
|
|
windows: {
|
|
known_failures: []
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
end
|