Add stageless python meterpreter to the payloads spec

This commit is contained in:
Spencer McIntyre 2015-10-22 08:40:50 -04:00
parent 23d9efb5a3
commit 810665847b
2 changed files with 22 additions and 2 deletions

View File

@ -44,7 +44,7 @@ module Metasploit
untested_payloads_pathname = Pathname.new 'log/untested-payloads.log'
if untested_payloads_pathname.exist?
tool_path = 'tools/missing_payload_tests.rb'
tool_path = 'tools/modules/missing_payload_tests.rb'
$stderr.puts "Untested payload detected. Running `#{tool_path}` to see contexts to add to " \
"`spec/modules/payloads_spec.rb` to test those payload ancestor reference names."
@ -58,4 +58,4 @@ module Metasploit
end
end
end
end
end

View File

@ -2245,6 +2245,26 @@ describe 'modules/payloads', :content do
reference_name: 'python/meterpreter/reverse_tcp_uuid'
end
context 'python/meterpreter_bind_tcp' do
it_should_behave_like 'payload cached size is consistent',
ancestor_reference_names: [
'singles/python/meterpreter_bind_tcp'
],
dynamic_size: false,
modules_pathname: modules_pathname,
reference_name: 'python/meterpreter_bind_tcp'
end
context 'python/meterpreter_reverse_tcp' do
it_should_behave_like 'payload cached size is consistent',
ancestor_reference_names: [
'singles/python/meterpreter_reverse_tcp'
],
dynamic_size: false,
modules_pathname: modules_pathname,
reference_name: 'python/meterpreter_reverse_tcp'
end
context 'python/shell_reverse_tcp' do
it_should_behave_like 'payload cached size is consistent',
ancestor_reference_names: [