Skip to content

Commit eaca91c

Browse files
committed
Land rapid7#9572, add bind_named_pipe tests
2 parents 4a63171 + 0acc5fe commit eaca91c

File tree

1 file changed

+53
-0
lines changed

1 file changed

+53
-0
lines changed

spec/modules/payloads_spec.rb

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2857,6 +2857,16 @@
28572857
reference_name: 'windows/messagebox'
28582858
end
28592859

2860+
context 'windows/meterpreter_bind_named_pipe' do
2861+
it_should_behave_like 'payload cached size is consistent',
2862+
ancestor_reference_names: [
2863+
'singles/windows/meterpreter_bind_named_pipe'
2864+
],
2865+
dynamic_size: false,
2866+
modules_pathname: modules_pathname,
2867+
reference_name: 'windows/meterpreter_bind_named_pipe'
2868+
end
2869+
28602870
context 'windows/meterpreter_bind_tcp' do
28612871
it_should_behave_like 'payload cached size is consistent',
28622872
ancestor_reference_names: [
@@ -4042,6 +4052,17 @@
40424052
reference_name: 'windows/x64/meterpreter/bind_ipv6_tcp_uuid'
40434053
end
40444054

4055+
context 'windows/x64/meterpreter/bind_named_pipe' do
4056+
it_should_behave_like 'payload cached size is consistent',
4057+
ancestor_reference_names: [
4058+
'stagers/windows/x64/bind_named_pipe',
4059+
'stages/windows/x64/meterpreter'
4060+
],
4061+
dynamic_size: false,
4062+
modules_pathname: modules_pathname,
4063+
reference_name: 'windows/x64/meterpreter/bind_named_pipe'
4064+
end
4065+
40454066
context 'windows/x64/meterpreter/bind_tcp' do
40464067
it_should_behave_like 'payload cached size is consistent',
40474068
ancestor_reference_names: [
@@ -4141,6 +4162,16 @@
41414162
reference_name: 'windows/x64/meterpreter/reverse_winhttps'
41424163
end
41434164

4165+
context 'windows/x64/meterpreter_bind_named_pipe' do
4166+
it_should_behave_like 'payload cached size is consistent',
4167+
ancestor_reference_names: [
4168+
'singles/windows/x64/meterpreter_bind_named_pipe'
4169+
],
4170+
dynamic_size: false,
4171+
modules_pathname: modules_pathname,
4172+
reference_name: 'windows/x64/meterpreter_bind_named_pipe'
4173+
end
4174+
41444175
context 'windows/x64/meterpreter_bind_tcp' do
41454176
it_should_behave_like 'payload cached size is consistent',
41464177
ancestor_reference_names: [
@@ -4211,6 +4242,17 @@
42114242
reference_name: 'windows/x64/powershell_reverse_tcp'
42124243
end
42134244

4245+
context 'windows/x64/shell/bind_named_pipe' do
4246+
it_should_behave_like 'payload cached size is consistent',
4247+
ancestor_reference_names: [
4248+
'stagers/windows/x64/bind_named_pipe',
4249+
'stages/windows/x64/shell'
4250+
],
4251+
dynamic_size: false,
4252+
modules_pathname: modules_pathname,
4253+
reference_name: 'windows/x64/shell/bind_named_pipe'
4254+
end
4255+
42144256
context 'windows/x64/shell/bind_tcp' do
42154257
it_should_behave_like 'payload cached size is consistent',
42164258
ancestor_reference_names: [
@@ -4253,6 +4295,17 @@
42534295
reference_name: 'windows/x64/shell_reverse_tcp'
42544296
end
42554297

4298+
context 'windows/x64/vncinject/bind_named_pipe' do
4299+
it_should_behave_like 'payload cached size is consistent',
4300+
ancestor_reference_names: [
4301+
'stagers/windows/x64/bind_named_pipe',
4302+
'stages/windows/x64/vncinject'
4303+
],
4304+
dynamic_size: false,
4305+
modules_pathname: modules_pathname,
4306+
reference_name: 'windows/x64/vncinject/bind_named_pipe'
4307+
end
4308+
42564309
context 'windows/x64/vncinject/bind_tcp' do
42574310
it_should_behave_like 'payload cached size is consistent',
42584311
ancestor_reference_names: [

0 commit comments

Comments
 (0)