Skip to content

Commit 47562eb

Browse files
committed
Update specs
1 parent 17b3ded commit 47562eb

File tree

1 file changed

+16
-30
lines changed

1 file changed

+16
-30
lines changed

spec/modules/payloads_spec.rb

Lines changed: 16 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1043,6 +1043,14 @@
10431043
reference_name: 'cmd/unix/interact'
10441044
end
10451045

1046+
context 'cmd/unix/php' do
1047+
it_should_behave_like 'payload is not cached',
1048+
ancestor_reference_names: [
1049+
'adapters/cmd/unix/php'
1050+
],
1051+
reference_name: 'cmd/unix/php'
1052+
end
1053+
10461054
context 'cmd/unix/pingback_bind' do
10471055
it_should_behave_like 'payload cached size is consistent',
10481056
ancestor_reference_names: [
@@ -2920,26 +2928,6 @@
29202928
reference_name: 'osx/x86/vforkshell_reverse_tcp'
29212929
end
29222930

2923-
context 'php/bind_perl' do
2924-
it_should_behave_like 'payload cached size is consistent',
2925-
ancestor_reference_names: [
2926-
'singles/php/bind_perl'
2927-
],
2928-
dynamic_size: true,
2929-
modules_pathname: modules_pathname,
2930-
reference_name: 'php/bind_perl'
2931-
end
2932-
2933-
context 'php/bind_perl_ipv6' do
2934-
it_should_behave_like 'payload cached size is consistent',
2935-
ancestor_reference_names: [
2936-
'singles/php/bind_perl_ipv6'
2937-
],
2938-
dynamic_size: true,
2939-
modules_pathname: modules_pathname,
2940-
reference_name: 'php/bind_perl_ipv6'
2941-
end
2942-
29432931
context 'php/bind_php' do
29442932
it_should_behave_like 'payload cached size is consistent',
29452933
ancestor_reference_names: [
@@ -2960,6 +2948,14 @@
29602948
reference_name: 'php/bind_php_ipv6'
29612949
end
29622950

2951+
context 'php/unix/cmd' do
2952+
it_should_behave_like 'payload is not cached',
2953+
ancestor_reference_names: [
2954+
'adapters/php/unix/cmd'
2955+
],
2956+
reference_name: 'php/unix/cmd '
2957+
end
2958+
29632959
context 'php/download_exec' do
29642960
it_should_behave_like 'payload cached size is consistent',
29652961
ancestor_reference_names: [
@@ -3056,16 +3052,6 @@
30563052
reference_name: 'php/meterpreter_reverse_tcp'
30573053
end
30583054

3059-
context 'php/reverse_perl' do
3060-
it_should_behave_like 'payload cached size is consistent',
3061-
ancestor_reference_names: [
3062-
'singles/php/reverse_perl'
3063-
],
3064-
dynamic_size: true,
3065-
modules_pathname: modules_pathname,
3066-
reference_name: 'php/reverse_perl'
3067-
end
3068-
30693055
context 'php/reverse_php' do
30703056
it_should_behave_like 'payload cached size is consistent',
30713057
ancestor_reference_names: [

0 commit comments

Comments
 (0)