Skip to content

Commit 960e29f

Browse files
committed
Update specs
1 parent f3b650a commit 960e29f

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: [
@@ -2929,26 +2937,6 @@
29292937
reference_name: 'osx/x86/vforkshell_reverse_tcp'
29302938
end
29312939

2932-
context 'php/bind_perl' do
2933-
it_should_behave_like 'payload cached size is consistent',
2934-
ancestor_reference_names: [
2935-
'singles/php/bind_perl'
2936-
],
2937-
dynamic_size: true,
2938-
modules_pathname: modules_pathname,
2939-
reference_name: 'php/bind_perl'
2940-
end
2941-
2942-
context 'php/bind_perl_ipv6' do
2943-
it_should_behave_like 'payload cached size is consistent',
2944-
ancestor_reference_names: [
2945-
'singles/php/bind_perl_ipv6'
2946-
],
2947-
dynamic_size: true,
2948-
modules_pathname: modules_pathname,
2949-
reference_name: 'php/bind_perl_ipv6'
2950-
end
2951-
29522940
context 'php/bind_php' do
29532941
it_should_behave_like 'payload cached size is consistent',
29542942
ancestor_reference_names: [
@@ -2969,6 +2957,14 @@
29692957
reference_name: 'php/bind_php_ipv6'
29702958
end
29712959

2960+
context 'php/unix/cmd' do
2961+
it_should_behave_like 'payload is not cached',
2962+
ancestor_reference_names: [
2963+
'adapters/php/unix/cmd'
2964+
],
2965+
reference_name: 'php/unix/cmd '
2966+
end
2967+
29722968
context 'php/download_exec' do
29732969
it_should_behave_like 'payload cached size is consistent',
29742970
ancestor_reference_names: [
@@ -3065,16 +3061,6 @@
30653061
reference_name: 'php/meterpreter_reverse_tcp'
30663062
end
30673063

3068-
context 'php/reverse_perl' do
3069-
it_should_behave_like 'payload cached size is consistent',
3070-
ancestor_reference_names: [
3071-
'singles/php/reverse_perl'
3072-
],
3073-
dynamic_size: true,
3074-
modules_pathname: modules_pathname,
3075-
reference_name: 'php/reverse_perl'
3076-
end
3077-
30783064
context 'php/reverse_php' do
30793065
it_should_behave_like 'payload cached size is consistent',
30803066
ancestor_reference_names: [

0 commit comments

Comments
 (0)