Skip to content

Commit e103b23

Browse files
committed
Update payload sizes and add new payloads to spec
1 parent 9e50114 commit e103b23

File tree

6 files changed

+38
-5
lines changed

6 files changed

+38
-5
lines changed

modules/payloads/stagers/windows/bind_ipv6_tcp_uuid.rb

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

1111
module Metasploit4
1212

13-
CachedSize = 285
13+
CachedSize = 318
1414

1515
include Msf::Payload::Stager
1616
include Msf::Payload::Windows::BindTcp

modules/payloads/stagers/windows/x64/bind_ipv6_tcp.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 = 479
12+
CachedSize = 483
1313

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

modules/payloads/stagers/windows/x64/bind_ipv6_tcp_uuid.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 = 479
12+
CachedSize = 524
1313

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

modules/payloads/stagers/windows/x64/bind_tcp.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 = 479
12+
CachedSize = 481
1313

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

modules/payloads/stagers/windows/x64/bind_tcp_uuid.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 = 520
12+
CachedSize = 522
1313

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

spec/modules/payloads_spec.rb

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2642,6 +2642,17 @@
26422642
reference_name: 'windows/meterpreter/bind_ipv6_tcp'
26432643
end
26442644

2645+
context 'windows/meterpreter/bind_ipv6_tcp_uuid' do
2646+
it_should_behave_like 'payload cached size is consistent',
2647+
ancestor_reference_names: [
2648+
'stagers/windows/bind_ipv6_tcp_uuid',
2649+
'stages/windows/meterpreter'
2650+
],
2651+
dynamic_size: false,
2652+
modules_pathname: modules_pathname,
2653+
reference_name: 'windows/meterpreter/bind_ipv6_tcp_uuid'
2654+
end
2655+
26452656
context 'windows/meterpreter/bind_nonx_tcp' do
26462657
it_should_behave_like 'payload cached size is consistent',
26472658
ancestor_reference_names: [
@@ -3656,6 +3667,28 @@
36563667
reference_name: 'windows/x64/loadlibrary'
36573668
end
36583669

3670+
context 'windows/x64/meterpreter/bind_ipv6_tcp' do
3671+
it_should_behave_like 'payload cached size is consistent',
3672+
ancestor_reference_names: [
3673+
'stagers/windows/x64/bind_ipv6_tcp',
3674+
'stages/windows/x64/meterpreter'
3675+
],
3676+
dynamic_size: false,
3677+
modules_pathname: modules_pathname,
3678+
reference_name: 'windows/x64/meterpreter/bind_ipv6_tcp'
3679+
end
3680+
3681+
context 'windows/x64/meterpreter/bind_ipv6_tcp_uuid' do
3682+
it_should_behave_like 'payload cached size is consistent',
3683+
ancestor_reference_names: [
3684+
'stagers/windows/x64/bind_ipv6_tcp_uuid',
3685+
'stages/windows/x64/meterpreter'
3686+
],
3687+
dynamic_size: false,
3688+
modules_pathname: modules_pathname,
3689+
reference_name: 'windows/x64/meterpreter/bind_ipv6_tcp_uuid'
3690+
end
3691+
36593692
context 'windows/x64/meterpreter/bind_tcp' do
36603693
it_should_behave_like 'payload cached size is consistent',
36613694
ancestor_reference_names: [

0 commit comments

Comments
 (0)