1
mirror of https://github.com/rapid7/metasploit-framework synced 2024-11-12 11:52:01 +01:00

Land #11968, only enable UDP stagers for compatible payloads

This commit is contained in:
Brent Cook 2019-06-29 03:34:15 -05:00
commit 4e544fe733
No known key found for this signature in database
GPG Key ID: 1FFAA0B24B708F96
4 changed files with 4 additions and 59 deletions

View File

@ -1,5 +1,5 @@
##
# This module requires Metasploit: http://metasploit.com/download
# This module requires Metasploit: https://metasploit.com/download
# Current source: https://github.com/rapid7/metasploit-framework
##
@ -27,7 +27,7 @@ module MetasploitModule
'Platform' => 'win',
'Arch' => ARCH_X86,
'Handler' => Msf::Handler::ReverseUdp,
'Convention' => 'sockedi',
'Convention' => 'udpsockedi',
'Stager' => { 'RequiresMidstager' => false }
))
end

View File

@ -22,7 +22,7 @@ module MetasploitModule
'Session' => Msf::Sessions::CommandShellWindows,
'PayloadCompat' =>
{
'Convention' => 'sockedi -http -https'
'Convention' => 'sockedi udpsockedi -http -https'
},
'Stage' =>
{

View File

@ -22,7 +22,7 @@ module MetasploitModule
'Session' => Msf::Sessions::CommandShellWindows,
'PayloadCompat' =>
{
'Convention' => 'sockedi -http -https'
'Convention' => 'sockedi udpsockedi -http -https'
},
'Stage' =>
{

View File

@ -2919,17 +2919,6 @@ RSpec.describe 'modules/payloads', :content do
reference_name: 'windows/dllinject/reverse_tcp_rc4_dns'
end
context 'windows/dllinject/reverse_udp' do
it_should_behave_like 'payload cached size is consistent',
ancestor_reference_names: [
'stagers/windows/reverse_udp',
'stages/windows/dllinject'
],
dynamic_size: false,
modules_pathname: modules_pathname,
reference_name: 'windows/dllinject/reverse_udp'
end
context 'windows/dns_txt_query_exec' do
it_should_behave_like 'payload cached size is consistent',
ancestor_reference_names: [
@ -3303,17 +3292,6 @@ RSpec.describe 'modules/payloads', :content do
reference_name: 'windows/meterpreter/reverse_tcp_uuid'
end
context 'windows/meterpreter/reverse_udp' do
it_should_behave_like 'payload cached size is consistent',
ancestor_reference_names: [
'stagers/windows/reverse_udp',
'stages/windows/meterpreter'
],
dynamic_size: false,
modules_pathname: modules_pathname,
reference_name: 'windows/meterpreter/reverse_udp'
end
context 'windows/metsvc_bind_tcp' do
it_should_behave_like 'payload cached size is consistent',
ancestor_reference_names: [
@ -3488,17 +3466,6 @@ RSpec.describe 'modules/payloads', :content do
reference_name: 'windows/patchupdllinject/reverse_tcp_rc4_dns'
end
context 'windows/patchupdllinject/reverse_udp' do
it_should_behave_like 'payload cached size is consistent',
ancestor_reference_names: [
'stagers/windows/reverse_udp',
'stages/windows/patchupdllinject'
],
dynamic_size: false,
modules_pathname: modules_pathname,
reference_name: 'windows/patchupdllinject/reverse_udp'
end
context 'windows/patchupmeterpreter/bind_ipv6_tcp' do
it_should_behave_like 'payload cached size is consistent',
ancestor_reference_names: [
@ -3653,17 +3620,6 @@ RSpec.describe 'modules/payloads', :content do
reference_name: 'windows/patchupmeterpreter/reverse_tcp_rc4_dns'
end
context 'windows/patchupmeterpreter/reverse_udp' do
it_should_behave_like 'payload cached size is consistent',
ancestor_reference_names: [
'stagers/windows/reverse_udp',
'stages/windows/patchupmeterpreter'
],
dynamic_size: false,
modules_pathname: modules_pathname,
reference_name: 'windows/patchupmeterpreter/reverse_udp'
end
context 'windows/shell/bind_ipv6_tcp' do
it_should_behave_like 'payload cached size is consistent',
ancestor_reference_names: [
@ -4198,17 +4154,6 @@ RSpec.describe 'modules/payloads', :content do
reference_name: 'windows/vncinject/reverse_tcp_rc4_dns'
end
context 'windows/vncinject/reverse_udp' do
it_should_behave_like 'payload cached size is consistent',
ancestor_reference_names: [
'stagers/windows/reverse_udp',
'stages/windows/vncinject'
],
dynamic_size: false,
modules_pathname: modules_pathname,
reference_name: 'windows/vncinject/reverse_udp'
end
context 'windows/x64/exec' do
it_should_behave_like 'payload cached size is consistent',
ancestor_reference_names: [