-
Notifications
You must be signed in to change notification settings - Fork 14.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a63fa68
commit 6862643
Showing
17 changed files
with
2,009 additions
and
1,977 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,150 +1,154 @@ | ||
module Acceptance::Session | ||
CMD = { | ||
payloads: [ | ||
{ | ||
name: 'windows/x64/shell_reverse_tcp', | ||
extension: '.exe', | ||
platforms: [:windows], | ||
execute_cmd: ['${payload_path}'], | ||
executable: true, | ||
generate_options: { | ||
'-f': 'exe' | ||
}, | ||
datastore: { | ||
global: {}, | ||
module: {} | ||
} | ||
} | ||
], | ||
module_tests: [ | ||
{ | ||
name: 'post/test/cmd_exec', | ||
platforms: [ | ||
[ | ||
:linux, | ||
{ | ||
skip: true, | ||
reason: 'Payload not compiled for platform' | ||
} | ||
], | ||
[ | ||
:osx, | ||
{ | ||
skip: true, | ||
reason: 'Payload not compiled for platform' | ||
module Acceptance | ||
module CommandShell | ||
module Cmd | ||
TESTS = { | ||
payloads: [ | ||
{ | ||
name: 'windows/x64/shell_reverse_tcp', | ||
extension: '.exe', | ||
platforms: [:windows], | ||
execute_cmd: ['${payload_path}'], | ||
executable: true, | ||
generate_options: { | ||
'-f': 'exe' | ||
}, | ||
datastore: { | ||
global: {}, | ||
module: {} | ||
} | ||
], | ||
:windows | ||
], | ||
skipped: false, | ||
lines: { | ||
linux: { | ||
known_failures: [] | ||
}, | ||
osx: { | ||
known_failures: [] | ||
}, | ||
windows: { | ||
known_failures: [] | ||
} | ||
} | ||
}, | ||
{ | ||
name: 'post/test/file', | ||
platforms: [ | ||
[ | ||
:linux, | ||
{ | ||
skip: true, | ||
reason: 'Payload not compiled for platform' | ||
} | ||
], | ||
[ | ||
:osx, | ||
{ | ||
skip: true, | ||
reason: 'Payload not compiled for platform' | ||
} | ||
], | ||
:windows | ||
], | ||
skipped: false, | ||
lines: { | ||
linux: { | ||
known_failures: [] | ||
}, | ||
osx: { | ||
known_failures: [] | ||
}, | ||
windows: { | ||
known_failures: [] | ||
} | ||
} | ||
}, | ||
{ | ||
name: 'post/test/get_env', | ||
platforms: [ | ||
[ | ||
:linux, | ||
{ | ||
skip: true, | ||
reason: 'Payload not compiled for platform' | ||
} | ||
], | ||
[ | ||
:osx, | ||
{ | ||
skip: true, | ||
reason: 'Payload not compiled for platform' | ||
module_tests: [ | ||
{ | ||
name: 'post/test/cmd_exec', | ||
platforms: [ | ||
[ | ||
:linux, | ||
{ | ||
skip: true, | ||
reason: 'Payload not compiled for platform' | ||
} | ||
], | ||
[ | ||
:osx, | ||
{ | ||
skip: true, | ||
reason: 'Payload not compiled for platform' | ||
} | ||
], | ||
:windows | ||
], | ||
skipped: false, | ||
lines: { | ||
linux: { | ||
known_failures: [] | ||
}, | ||
osx: { | ||
known_failures: [] | ||
}, | ||
windows: { | ||
known_failures: [] | ||
} | ||
} | ||
], | ||
:windows | ||
], | ||
skipped: false, | ||
lines: { | ||
linux: { | ||
known_failures: [] | ||
}, | ||
osx: { | ||
known_failures: [] | ||
}, | ||
windows: { | ||
known_failures: [] | ||
} | ||
} | ||
}, | ||
{ | ||
name: 'post/test/registry', | ||
platforms: [ | ||
[ | ||
:linux, | ||
{ | ||
skip: true, | ||
reason: 'Windows only test' | ||
{ | ||
name: 'post/test/file', | ||
platforms: [ | ||
[ | ||
:linux, | ||
{ | ||
skip: true, | ||
reason: 'Payload not compiled for platform' | ||
} | ||
], | ||
[ | ||
:osx, | ||
{ | ||
skip: true, | ||
reason: 'Payload not compiled for platform' | ||
} | ||
], | ||
:windows | ||
], | ||
skipped: false, | ||
lines: { | ||
linux: { | ||
known_failures: [] | ||
}, | ||
osx: { | ||
known_failures: [] | ||
}, | ||
windows: { | ||
known_failures: [] | ||
} | ||
} | ||
], | ||
[ | ||
:osx, | ||
{ | ||
skip: true, | ||
reason: 'Windows only test' | ||
} | ||
], | ||
:windows | ||
], | ||
skipped: false, | ||
lines: { | ||
linux: { | ||
known_failures: [] | ||
}, | ||
osx: { | ||
known_failures: [] | ||
{ | ||
name: 'post/test/get_env', | ||
platforms: [ | ||
[ | ||
:linux, | ||
{ | ||
skip: true, | ||
reason: 'Payload not compiled for platform' | ||
} | ||
], | ||
[ | ||
:osx, | ||
{ | ||
skip: true, | ||
reason: 'Payload not compiled for platform' | ||
} | ||
], | ||
:windows | ||
], | ||
skipped: false, | ||
lines: { | ||
linux: { | ||
known_failures: [] | ||
}, | ||
osx: { | ||
known_failures: [] | ||
}, | ||
windows: { | ||
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: [] | ||
} | ||
} | ||
} | ||
} | ||
] | ||
} | ||
] | ||
} | ||
end | ||
end | ||
end |
Oops, something went wrong.