Skip to content

Commit 25fabfc

Browse files
committed
Merge pull request #7 from wvu-r7/pr/3394
Add bind_hidden_tcp to payload spec
2 parents 9a7e431 + e419186 commit 25fabfc

File tree

1 file changed

+70
-0
lines changed

1 file changed

+70
-0
lines changed

spec/modules/payloads_spec.rb

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3255,4 +3255,74 @@
32553255
modules_pathname: modules_pathname,
32563256
reference_name: 'windows/x64/vncinject/reverse_tcp'
32573257
end
3258+
3259+
context 'windows/dllinject/bind_hidden_tcp' do
3260+
it_should_behave_like 'payload can be instantiated',
3261+
ancestor_reference_names: [
3262+
'stagers/windows/bind_hidden_tcp',
3263+
'stages/windows/dllinject'
3264+
],
3265+
modules_pathname: modules_pathname,
3266+
reference_name: 'windows/dllinject/bind_hidden_tcp'
3267+
end
3268+
3269+
context 'windows/meterpreter/bind_hidden_tcp' do
3270+
it_should_behave_like 'payload can be instantiated',
3271+
ancestor_reference_names: [
3272+
'stagers/windows/bind_hidden_tcp',
3273+
'stages/windows/meterpreter'
3274+
],
3275+
modules_pathname: modules_pathname,
3276+
reference_name: 'windows/meterpreter/bind_hidden_tcp'
3277+
end
3278+
3279+
context 'windows/patchupdllinject/bind_hidden_tcp' do
3280+
it_should_behave_like 'payload can be instantiated',
3281+
ancestor_reference_names: [
3282+
'stagers/windows/bind_hidden_tcp',
3283+
'stages/windows/patchupdllinject'
3284+
],
3285+
modules_pathname: modules_pathname,
3286+
reference_name: 'windows/patchupdllinject/bind_hidden_tcp'
3287+
end
3288+
3289+
context 'windows/patchupmeterpreter/bind_hidden_tcp' do
3290+
it_should_behave_like 'payload can be instantiated',
3291+
ancestor_reference_names: [
3292+
'stagers/windows/bind_hidden_tcp',
3293+
'stages/windows/patchupmeterpreter'
3294+
],
3295+
modules_pathname: modules_pathname,
3296+
reference_name: 'windows/patchupmeterpreter/bind_hidden_tcp'
3297+
end
3298+
3299+
context 'windows/shell/bind_hidden_tcp' do
3300+
it_should_behave_like 'payload can be instantiated',
3301+
ancestor_reference_names: [
3302+
'stagers/windows/bind_hidden_tcp',
3303+
'stages/windows/shell'
3304+
],
3305+
modules_pathname: modules_pathname,
3306+
reference_name: 'windows/shell/bind_hidden_tcp'
3307+
end
3308+
3309+
context 'windows/upexec/bind_hidden_tcp' do
3310+
it_should_behave_like 'payload can be instantiated',
3311+
ancestor_reference_names: [
3312+
'stagers/windows/bind_hidden_tcp',
3313+
'stages/windows/upexec'
3314+
],
3315+
modules_pathname: modules_pathname,
3316+
reference_name: 'windows/upexec/bind_hidden_tcp'
3317+
end
3318+
3319+
context 'windows/vncinject/bind_hidden_tcp' do
3320+
it_should_behave_like 'payload can be instantiated',
3321+
ancestor_reference_names: [
3322+
'stagers/windows/bind_hidden_tcp',
3323+
'stages/windows/vncinject'
3324+
],
3325+
modules_pathname: modules_pathname,
3326+
reference_name: 'windows/vncinject/bind_hidden_tcp'
3327+
end
32583328
end

0 commit comments

Comments
 (0)