add missing payload tests

GSoC/Meterpreter_Web_Console
Jeffrey Martin 2018-03-04 17:43:15 -06:00
parent ea62497385
commit eac7cc63fc
No known key found for this signature in database
GPG Key ID: 0CD9BBC2AF15F171
2 changed files with 34 additions and 1 deletions

View File

@ -10,7 +10,7 @@ require 'msf/core/payload/windows/x64/reverse_tcp_rc4'
module MetasploitModule
CachedSize = 398
CachedSize = 585
include Msf::Payload::Stager
include Msf::Payload::Windows::ReverseTcpRc4_x64

View File

@ -4151,6 +4151,17 @@ RSpec.describe 'modules/payloads', :content do
reference_name: 'windows/x64/meterpreter/reverse_tcp'
end
context 'windows/x64/meterpreter/reverse_tcp_rc4' do
it_should_behave_like 'payload cached size is consistent',
ancestor_reference_names: [
'stagers/windows/x64/reverse_tcp_rc4',
'stages/windows/x64/meterpreter'
],
dynamic_size: false,
modules_pathname: modules_pathname,
reference_name: 'windows/x64/meterpreter/reverse_tcp_rc4'
end
context 'windows/x64/meterpreter/reverse_tcp_uuid' do
it_should_behave_like 'payload cached size is consistent',
ancestor_reference_names: [
@ -4297,6 +4308,17 @@ RSpec.describe 'modules/payloads', :content do
reference_name: 'windows/x64/shell/reverse_tcp'
end
context 'windows/x64/shell/reverse_tcp_rc4' do
it_should_behave_like 'payload cached size is consistent',
ancestor_reference_names: [
'stagers/windows/x64/reverse_tcp_rc4',
'stages/windows/x64/shell'
],
dynamic_size: false,
modules_pathname: modules_pathname,
reference_name: 'windows/x64/shell/reverse_tcp_rc4'
end
context 'windows/x64/shell_bind_tcp' do
it_should_behave_like 'payload cached size is consistent',
ancestor_reference_names: [
@ -4350,6 +4372,17 @@ RSpec.describe 'modules/payloads', :content do
reference_name: 'windows/x64/vncinject/reverse_tcp'
end
context 'windows/x64/vncinject/reverse_tcp_rc4' do
it_should_behave_like 'payload cached size is consistent',
ancestor_reference_names: [
'stagers/windows/x64/reverse_tcp_rc4',
'stages/windows/x64/vncinject'
],
dynamic_size: false,
modules_pathname: modules_pathname,
reference_name: 'windows/x64/vncinject/reverse_tcp_rc4'
end
context 'windows/dllinject/bind_hidden_tcp' do
it_should_behave_like 'payload cached size is consistent',
ancestor_reference_names: [