Skip to content

Commit

Permalink
add pingpack payload specs
Browse files Browse the repository at this point in the history
  • Loading branch information
jmartin-tech committed Nov 25, 2019
1 parent 3f6a19b commit ece57f4
Showing 1 changed file with 110 additions and 0 deletions.
110 changes: 110 additions & 0 deletions spec/modules/payloads_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -738,6 +738,26 @@
reference_name: 'cmd/unix/interact'
end

context 'cmd/unix/pingback_bind' do
it_should_behave_like 'payload cached size is consistent',
ancestor_reference_names: [
'singles/cmd/unix/pingback_bind'
],
dynamic_size: false,
modules_pathname: modules_pathname,
reference_name: 'cmd/unix/pingback_bind'
end

context 'cmd/unix/pingback_reverse' do
it_should_behave_like 'payload cached size is consistent',
ancestor_reference_names: [
'singles/cmd/unix/pingback_reverse'
],
dynamic_size: false,
modules_pathname: modules_pathname,
reference_name: 'cmd/unix/pingback_reverse'
end

context 'cmd/unix/reverse' do
it_should_behave_like 'payload cached size is consistent',
ancestor_reference_names: [
Expand Down Expand Up @@ -1590,6 +1610,26 @@
reference_name: 'linux/x64/exec'
end

context 'linux/x64/pingback_bind_tcp' do
it_should_behave_like 'payload cached size is consistent',
ancestor_reference_names: [
'singles/linux/x64/pingback_bind_tcp'
],
dynamic_size: false,
modules_pathname: modules_pathname,
reference_name: 'linux/x64/pingback_bind_tcp'
end

context 'linux/x64/pingback_reverse_tcp' do
it_should_behave_like 'payload cached size is consistent',
ancestor_reference_names: [
'singles/linux/x64/pingback_reverse_tcp'
],
dynamic_size: false,
modules_pathname: modules_pathname,
reference_name: 'linux/x64/pingback_reverse_tcp'
end

context 'linux/x64/shell/bind_tcp' do
it_should_behave_like 'payload cached size is consistent',
ancestor_reference_names: [
Expand Down Expand Up @@ -2592,6 +2632,26 @@
reference_name: 'python/meterpreter_reverse_tcp'
end

context 'python/pingback_bind_tcp' do
it_should_behave_like 'payload cached size is consistent',
ancestor_reference_names: [
'singles/python/pingback_bind_tcp'
],
dynamic_size: false,
modules_pathname: modules_pathname,
reference_name: 'python/pingback_bind_tcp'
end

context 'python/pingback_reverse_tcp' do
it_should_behave_like 'payload cached size is consistent',
ancestor_reference_names: [
'singles/python/pingback_reverse_tcp'
],
dynamic_size: false,
modules_pathname: modules_pathname,
reference_name: 'python/pingback_reverse_tcp'
end

context 'python/shell_bind_tcp' do
it_should_behave_like 'payload cached size is consistent',
ancestor_reference_names: [
Expand Down Expand Up @@ -2632,6 +2692,26 @@
reference_name: 'python/shell_reverse_udp'
end

context 'ruby/pingback_bind_tcp' do
it_should_behave_like 'payload cached size is consistent',
ancestor_reference_names: [
'singles/ruby/pingback_bind_tcp'
],
dynamic_size: false,
modules_pathname: modules_pathname,
reference_name: 'ruby/pingback_bind_tcp'
end

context 'ruby/pingback_reverse_tcp' do
it_should_behave_like 'payload cached size is consistent',
ancestor_reference_names: [
'singles/ruby/pingback_reverse_tcp'
],
dynamic_size: false,
modules_pathname: modules_pathname,
reference_name: 'ruby/pingback_reverse_tcp'
end

context 'ruby/shell_bind_tcp' do
it_should_behave_like 'payload cached size is consistent',
ancestor_reference_names: [
Expand Down Expand Up @@ -3640,6 +3720,26 @@
reference_name: 'windows/patchupmeterpreter/reverse_tcp_rc4_dns'
end

context 'windows/pingback_bind_tcp' do
it_should_behave_like 'payload cached size is consistent',
ancestor_reference_names: [
'singles/windows/pingback_bind_tcp'
],
dynamic_size: false,
modules_pathname: modules_pathname,
reference_name: 'windows/pingback_bind_tcp'
end

context 'windows/pingback_reverse_tcp' do
it_should_behave_like 'payload cached size is consistent',
ancestor_reference_names: [
'singles/windows/pingback_reverse_tcp'
],
dynamic_size: false,
modules_pathname: modules_pathname,
reference_name: 'windows/pingback_reverse_tcp'
end

context 'windows/shell/bind_ipv6_tcp' do
it_should_behave_like 'payload cached size is consistent',
ancestor_reference_names: [
Expand Down Expand Up @@ -4438,6 +4538,16 @@
reference_name: 'windows/x64/powershell_reverse_tcp'
end

context 'windows/x64/pingback_reverse_tcp' do
it_should_behave_like 'payload cached size is consistent',
ancestor_reference_names: [
'singles/windows/x64/pingback_reverse_tcp'
],
dynamic_size: false,
modules_pathname: modules_pathname,
reference_name: 'windows/x64/pingback_reverse_tcp'
end

context 'windows/x64/shell/bind_named_pipe' do
it_should_behave_like 'payload cached size is consistent',
ancestor_reference_names: [
Expand Down

0 comments on commit ece57f4

Please sign in to comment.