Land #9665, Add missing reverse_tcp_rc4 payload tests.

Merge branch 'land-9665' into upstream-master
4.x
bwatters-r7 2018-03-05 17:18:04 -06:00 committed by Metasploit
parent d3b4f91b4c
commit 9be7bc9b21
No known key found for this signature in database
GPG Key ID: CDFB5FA52007B954
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: [