Skip to content

Commit d9068b7

Browse files
committed
Fix up payload cache sizes, and powershell include
1 parent e69e6c4 commit d9068b7

File tree

3 files changed

+24
-1
lines changed

3 files changed

+24
-1
lines changed

modules/payloads/singles/cmd/windows/powershell_reverse_tcp.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
##
55

66
require 'msf/core'
7+
require 'msf/core/handler/reverse_tcp'
78
require 'msf/base/sessions/powershell'
89

910
module Metasploit3

modules/payloads/stagers/windows/x64/reverse_winhttps.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
module Metasploit4
1111

12-
CachedSize = 347
12+
CachedSize = 537
1313

1414
include Msf::Payload::Stager
1515
include Msf::Payload::Windows

spec/modules/payloads_spec.rb

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3590,6 +3590,28 @@
35903590
reference_name: 'windows/x64/meterpreter/reverse_tcp'
35913591
end
35923592

3593+
context 'windows/x64/meterpreter/reverse_winhttp' do
3594+
it_should_behave_like 'payload cached size is consistent',
3595+
ancestor_reference_names: [
3596+
'stagers/windows/x64/reverse_winhttp',
3597+
'stages/windows/x64/meterpreter'
3598+
],
3599+
dynamic_size: false,
3600+
modules_pathname: modules_pathname,
3601+
reference_name: 'windows/x64/meterpreter/reverse_winhttp'
3602+
end
3603+
3604+
context 'windows/x64/meterpreter/reverse_winhttps' do
3605+
it_should_behave_like 'payload cached size is consistent',
3606+
ancestor_reference_names: [
3607+
'stagers/windows/x64/reverse_winhttps',
3608+
'stages/windows/x64/meterpreter'
3609+
],
3610+
dynamic_size: false,
3611+
modules_pathname: modules_pathname,
3612+
reference_name: 'windows/x64/meterpreter/reverse_winhttps'
3613+
end
3614+
35933615
context 'windows/x64/meterpreter_bind_tcp' do
35943616
it_should_behave_like 'payload cached size is consistent',
35953617
ancestor_reference_names: [

0 commit comments

Comments
 (0)