mirror of
https://github.com/rapid7/metasploit-framework
synced 2024-10-29 18:07:27 +01:00
Failing with untested payloads to log
MSP-11145 Log untested payloads to log/untested-payloads.log.
This commit is contained in:
parent
8f3e064e0b
commit
003d8547c4
@ -90,20 +90,24 @@ describe 'modules/payloads' do
|
||||
missing_ancestor_reference_name_set = @expected_ancestor_reference_name_set - @actual_ancestor_reference_name_set
|
||||
|
||||
unless missing_ancestor_reference_name_set.empty?
|
||||
formatted_missing_ancestor_reference_names = missing_ancestor_reference_name_set.sort.join("\n ")
|
||||
open('log/untested-payloads.log', 'w') do |f|
|
||||
missing_ancestor_reference_name_set.sort.each do |missing_ancestor_reference_name|
|
||||
f.puts missing_ancestor_reference_name
|
||||
end
|
||||
end
|
||||
|
||||
$stderr.puts "Some payloads are untested:\n #{formatted_missing_ancestor_reference_names}"
|
||||
$stderr.puts "Some payloads are untested. See log/untested-payload.log for details."
|
||||
end
|
||||
end
|
||||
|
||||
context 'aix/ppc/shell_bind_tcp' do
|
||||
it_should_behave_like 'payload can be instantiated',
|
||||
ancestor_reference_names: [
|
||||
'singles/aix/ppc/shell_bind_tcp'
|
||||
],
|
||||
modules_pathname: modules_pathname,
|
||||
reference_name: 'aix/ppc/shell_bind_tcp'
|
||||
end
|
||||
#
|
||||
# context 'aix/ppc/shell_bind_tcp' do
|
||||
# it_should_behave_like 'payload can be instantiated',
|
||||
# ancestor_reference_names: [
|
||||
# 'singles/aix/ppc/shell_bind_tcp'
|
||||
# ],
|
||||
# modules_pathname: modules_pathname,
|
||||
# reference_name: 'aix/ppc/shell_bind_tcp'
|
||||
# end
|
||||
|
||||
context 'aix/ppc/shell_find_port' do
|
||||
it_should_behave_like 'payload can be instantiated',
|
||||
|
Loading…
Reference in New Issue
Block a user