Skip to content

Commit dee1ef0

Browse files
committed
Land rapid7#9462, add missing payload tests
2 parents fd4d575 + 159de81 commit dee1ef0

File tree

1 file changed

+60
-0
lines changed

1 file changed

+60
-0
lines changed

spec/modules/payloads_spec.rb

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,46 @@
4545
reference_name: 'aix/ppc/shell_reverse_tcp'
4646
end
4747

48+
context 'apple_ios/aarch64/meterpreter_reverse_http' do
49+
it_should_behave_like 'payload cached size is consistent',
50+
ancestor_reference_names: [
51+
'singles/apple_ios/aarch64/meterpreter_reverse_http'
52+
],
53+
dynamic_size: false,
54+
modules_pathname: modules_pathname,
55+
reference_name: 'apple_ios/aarch64/meterpreter_reverse_http'
56+
end
57+
58+
context 'apple_ios/aarch64/meterpreter_reverse_https' do
59+
it_should_behave_like 'payload cached size is consistent',
60+
ancestor_reference_names: [
61+
'singles/apple_ios/aarch64/meterpreter_reverse_https'
62+
],
63+
dynamic_size: false,
64+
modules_pathname: modules_pathname,
65+
reference_name: 'apple_ios/aarch64/meterpreter_reverse_https'
66+
end
67+
68+
context 'apple_ios/aarch64/meterpreter_reverse_tcp' do
69+
it_should_behave_like 'payload cached size is consistent',
70+
ancestor_reference_names: [
71+
'singles/apple_ios/aarch64/meterpreter_reverse_tcp'
72+
],
73+
dynamic_size: false,
74+
modules_pathname: modules_pathname,
75+
reference_name: 'apple_ios/aarch64/meterpreter_reverse_tcp'
76+
end
77+
78+
context 'apple_ios/aarch64/shell_reverse_tcp' do
79+
it_should_behave_like 'payload cached size is consistent',
80+
ancestor_reference_names: [
81+
'singles/apple_ios/aarch64/shell_reverse_tcp'
82+
],
83+
dynamic_size: false,
84+
modules_pathname: modules_pathname,
85+
reference_name: 'apple_ios/aarch64/shell_reverse_tcp'
86+
end
87+
4888
context 'android/meterpreter_reverse_https' do
4989
it_should_behave_like 'payload cached size is consistent',
5090
ancestor_reference_names: [
@@ -588,6 +628,16 @@
588628
reference_name: 'cmd/unix/bind_ruby_ipv6'
589629
end
590630

631+
context 'cmd/unix/bind_stub' do
632+
it_should_behave_like 'payload cached size is consistent',
633+
ancestor_reference_names: [
634+
'singles/cmd/unix/bind_stub'
635+
],
636+
dynamic_size: false,
637+
modules_pathname: modules_pathname,
638+
reference_name: 'cmd/unix/bind_stub'
639+
end
640+
591641
context 'cmd/unix/bind_zsh' do
592642
it_should_behave_like 'payload cached size is consistent',
593643
ancestor_reference_names: [
@@ -808,6 +858,16 @@
808858
reference_name: 'cmd/unix/reverse_ssl_double_telnet'
809859
end
810860

861+
context 'cmd/unix/reverse_stub' do
862+
it_should_behave_like 'payload cached size is consistent',
863+
ancestor_reference_names: [
864+
'singles/cmd/unix/reverse_stub'
865+
],
866+
dynamic_size: false,
867+
modules_pathname: modules_pathname,
868+
reference_name: 'cmd/unix/reverse_stub'
869+
end
870+
811871
context 'cmd/unix/reverse_zsh' do
812872
it_should_behave_like 'payload cached size is consistent',
813873
ancestor_reference_names: [

0 commit comments

Comments
 (0)