Skip to content

Commit b80445e

Browse files
committed
add missing payload tests
1 parent 2221779 commit b80445e

File tree

1 file changed

+108
-1
lines changed

1 file changed

+108
-1
lines changed

spec/modules/payloads_spec.rb

Lines changed: 108 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -538,6 +538,16 @@
538538
reference_name: 'cmd/unix/bind_nodejs'
539539
end
540540

541+
context 'cmd/unix/bind_socat_udp' do
542+
it_should_behave_like 'payload cached size is consistent',
543+
ancestor_reference_names: [
544+
'singles/cmd/unix/bind_socat_udp'
545+
],
546+
dynamic_size: false,
547+
modules_pathname: modules_pathname,
548+
reference_name: 'cmd/unix/bind_socat_udp'
549+
end
550+
541551
context 'cmd/unix/bind_perl' do
542552
it_should_behave_like 'payload cached size is consistent',
543553
ancestor_reference_names: [
@@ -718,6 +728,16 @@
718728
reference_name: 'cmd/unix/reverse_openssl'
719729
end
720730

731+
context 'cmd/unix/reverse_socat_udp' do
732+
it_should_behave_like 'payload cached size is consistent',
733+
ancestor_reference_names: [
734+
'singles/cmd/unix/reverse_socat_udp'
735+
],
736+
dynamic_size: false,
737+
modules_pathname: modules_pathname,
738+
reference_name: 'cmd/unix/reverse_socat_udp'
739+
end
740+
721741
context 'cmd/unix/reverse_perl' do
722742
it_should_behave_like 'payload cached size is consistent',
723743
ancestor_reference_names: [
@@ -1176,7 +1196,7 @@
11761196
end
11771197

11781198

1179-
context 'linux/armbe/shell_bind_tcp' do
1199+
context 'linux/armbe/shell_bind_tcp' do
11801200
it_should_behave_like 'payload cached size is consistent',
11811201
ancestor_reference_names: [
11821202
'singles/linux/armbe/shell_bind_tcp'
@@ -2400,6 +2420,16 @@
24002420
reference_name: 'python/shell_reverse_tcp_ssl'
24012421
end
24022422

2423+
context 'python/shell_reverse_udp' do
2424+
it_should_behave_like 'payload cached size is consistent',
2425+
ancestor_reference_names: [
2426+
'singles/python/shell_reverse_udp'
2427+
],
2428+
dynamic_size: false,
2429+
modules_pathname: modules_pathname,
2430+
reference_name: 'python/shell_reverse_udp'
2431+
end
2432+
24032433
context 'ruby/shell_bind_tcp' do
24042434
it_should_behave_like 'payload cached size is consistent',
24052435
ancestor_reference_names: [
@@ -2696,6 +2726,17 @@
26962726
reference_name: 'windows/dllinject/reverse_tcp_rc4_dns'
26972727
end
26982728

2729+
context 'windows/dllinject/reverse_udp' do
2730+
it_should_behave_like 'payload cached size is consistent',
2731+
ancestor_reference_names: [
2732+
'stagers/windows/reverse_udp',
2733+
'stages/windows/dllinject'
2734+
],
2735+
dynamic_size: false,
2736+
modules_pathname: modules_pathname,
2737+
reference_name: 'windows/dllinject/reverse_udp'
2738+
end
2739+
26992740
context 'windows/dns_txt_query_exec' do
27002741
it_should_behave_like 'payload cached size is consistent',
27012742
ancestor_reference_names: [
@@ -3048,6 +3089,17 @@
30483089
reference_name: 'windows/meterpreter/reverse_tcp_uuid'
30493090
end
30503091

3092+
context 'windows/meterpreter/reverse_udp' do
3093+
it_should_behave_like 'payload cached size is consistent',
3094+
ancestor_reference_names: [
3095+
'stagers/windows/reverse_udp',
3096+
'stages/windows/meterpreter'
3097+
],
3098+
dynamic_size: false,
3099+
modules_pathname: modules_pathname,
3100+
reference_name: 'windows/meterpreter/reverse_udp'
3101+
end
3102+
30513103
context 'windows/metsvc_bind_tcp' do
30523104
it_should_behave_like 'payload cached size is consistent',
30533105
ancestor_reference_names: [
@@ -3211,6 +3263,17 @@
32113263
reference_name: 'windows/patchupdllinject/reverse_tcp_rc4_dns'
32123264
end
32133265

3266+
context 'windows/patchupdllinject/reverse_udp' do
3267+
it_should_behave_like 'payload cached size is consistent',
3268+
ancestor_reference_names: [
3269+
'stagers/windows/reverse_udp',
3270+
'stages/windows/patchupdllinject'
3271+
],
3272+
dynamic_size: false,
3273+
modules_pathname: modules_pathname,
3274+
reference_name: 'windows/patchupdllinject/reverse_udp'
3275+
end
3276+
32143277
context 'windows/patchupmeterpreter/bind_ipv6_tcp' do
32153278
it_should_behave_like 'payload cached size is consistent',
32163279
ancestor_reference_names: [
@@ -3354,6 +3417,17 @@
33543417
reference_name: 'windows/patchupmeterpreter/reverse_tcp_rc4_dns'
33553418
end
33563419

3420+
context 'windows/patchupmeterpreter/reverse_udp' do
3421+
it_should_behave_like 'payload cached size is consistent',
3422+
ancestor_reference_names: [
3423+
'stagers/windows/reverse_udp',
3424+
'stages/windows/patchupmeterpreter'
3425+
],
3426+
dynamic_size: false,
3427+
modules_pathname: modules_pathname,
3428+
reference_name: 'windows/patchupmeterpreter/reverse_udp'
3429+
end
3430+
33573431
context 'windows/shell/bind_ipv6_tcp' do
33583432
it_should_behave_like 'payload cached size is consistent',
33593433
ancestor_reference_names: [
@@ -3497,6 +3571,17 @@
34973571
reference_name: 'windows/shell/reverse_tcp_rc4_dns'
34983572
end
34993573

3574+
context 'windows/shell/reverse_udp' do
3575+
it_should_behave_like 'payload cached size is consistent',
3576+
ancestor_reference_names: [
3577+
'stagers/windows/reverse_udp',
3578+
'stages/windows/shell'
3579+
],
3580+
dynamic_size: false,
3581+
modules_pathname: modules_pathname,
3582+
reference_name: 'windows/shell/reverse_udp'
3583+
end
3584+
35003585
context 'windows/shell_bind_tcp' do
35013586
it_should_behave_like 'payload cached size is consistent',
35023587
ancestor_reference_names: [
@@ -3690,6 +3775,17 @@
36903775
reference_name: 'windows/upexec/reverse_tcp_rc4_dns'
36913776
end
36923777

3778+
context 'windows/upexec/reverse_udp' do
3779+
it_should_behave_like 'payload cached size is consistent',
3780+
ancestor_reference_names: [
3781+
'stagers/windows/reverse_udp',
3782+
'stages/windows/upexec'
3783+
],
3784+
dynamic_size: false,
3785+
modules_pathname: modules_pathname,
3786+
reference_name: 'windows/upexec/reverse_udp'
3787+
end
3788+
36933789
context 'windows/vncinject/bind_ipv6_tcp' do
36943790
it_should_behave_like 'payload cached size is consistent',
36953791
ancestor_reference_names: [
@@ -3833,6 +3929,17 @@
38333929
reference_name: 'windows/vncinject/reverse_tcp_rc4_dns'
38343930
end
38353931

3932+
context 'windows/vncinject/reverse_udp' do
3933+
it_should_behave_like 'payload cached size is consistent',
3934+
ancestor_reference_names: [
3935+
'stagers/windows/reverse_udp',
3936+
'stages/windows/vncinject'
3937+
],
3938+
dynamic_size: false,
3939+
modules_pathname: modules_pathname,
3940+
reference_name: 'windows/vncinject/reverse_udp'
3941+
end
3942+
38363943
context 'windows/x64/exec' do
38373944
it_should_behave_like 'payload cached size is consistent',
38383945
ancestor_reference_names: [

0 commit comments

Comments
 (0)