Fix two typos for payload specs
parent
809a8d3a6e
commit
eefeb452b1
|
@ -1839,7 +1839,7 @@ describe 'modules/payloads', :content do
|
||||||
|
|
||||||
context 'python/meterpreter/reverse_http' do
|
context 'python/meterpreter/reverse_http' do
|
||||||
it_should_behave_like 'payload can be instantiated',
|
it_should_behave_like 'payload can be instantiated',
|
||||||
ancestor_reference_name: [
|
ancestor_reference_names: [
|
||||||
'stagers/python/reverse_http',
|
'stagers/python/reverse_http',
|
||||||
'stages/python/meterpreter'
|
'stages/python/meterpreter'
|
||||||
],
|
],
|
||||||
|
|
|
@ -62,15 +62,15 @@ File.open('log/untested-payloads.log') { |f|
|
||||||
$stderr.puts
|
$stderr.puts
|
||||||
$stderr.puts " context '#{reference_name}' do\n" \
|
$stderr.puts " context '#{reference_name}' do\n" \
|
||||||
" it_should_behave_like 'payload can be instantiated',\n" \
|
" it_should_behave_like 'payload can be instantiated',\n" \
|
||||||
" ancestor_reference_name: ["
|
" ancestor_reference_names: ["
|
||||||
|
|
||||||
ancestor_reference_names = options[:ancestor_reference_names]
|
ancestor_reference_names = options[:ancestor_reference_names]
|
||||||
|
|
||||||
if ancestor_reference_names.length == 1
|
if ancestor_reference_names.length == 1
|
||||||
$stderr.puts " '#{ancestor_reference_names[0]}'"
|
$stderr.puts " '#{ancestor_reference_names[0]}'"
|
||||||
else
|
else
|
||||||
$stderr.puts " '#{ancestor_reference_names[0]}',"
|
$stderr.puts " '#{ancestor_reference_names[1]}',"
|
||||||
$stderr.puts " '#{ancestor_reference_names[1]}'"
|
$stderr.puts " '#{ancestor_reference_names[0]}'"
|
||||||
end
|
end
|
||||||
|
|
||||||
$stderr.puts " ],\n" \
|
$stderr.puts " ],\n" \
|
||||||
|
|
Loading…
Reference in New Issue