Skip to content

Commit dddbf38

Browse files
committed
Updated payload spec to be in the correct order and updated payload cached size
1 parent 9d1a7ce commit dddbf38

File tree

3 files changed

+22
-2
lines changed

3 files changed

+22
-2
lines changed

modules/payloads/singles/windows/x64/powershell_bind_tcp.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
###
1717
module Metasploit3
1818

19-
CachedSize = 1695
19+
CachedSize = 1778
2020

2121
include Msf::Payload::Windows::Exec_x64
2222
include Rex::Powershell::Command

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
###
1717
module Metasploit3
1818

19-
CachedSize = 1703
19+
CachedSize = 1786
2020

2121
include Msf::Payload::Windows::Exec_x64
2222
include Msf::Payload::Windows::Powershell

spec/modules/payloads_spec.rb

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3629,6 +3629,26 @@
36293629
reference_name: 'windows/x64/meterpreter_reverse_tcp'
36303630
end
36313631

3632+
context 'windows/x64/powershell_bind_tcp' do
3633+
it_should_behave_like 'payload cached size is consistent',
3634+
ancestor_reference_names: [
3635+
'singles/windows/x64/powershell_bind_tcp'
3636+
],
3637+
dynamic_size: false,
3638+
modules_pathname: modules_pathname,
3639+
reference_name: 'windows/x64/powershell_bind_tcp'
3640+
end
3641+
3642+
context 'windows/x64/powershell_reverse_tcp' do
3643+
it_should_behave_like 'payload cached size is consistent',
3644+
ancestor_reference_names: [
3645+
'singles/windows/x64/powershell_reverse_tcp'
3646+
],
3647+
dynamic_size: false,
3648+
modules_pathname: modules_pathname,
3649+
reference_name: 'windows/x64/powershell_reverse_tcp'
3650+
end
3651+
36323652
context 'windows/x64/shell/bind_tcp' do
36333653
it_should_behave_like 'payload cached size is consistent',
36343654
ancestor_reference_names: [

0 commit comments

Comments
 (0)