Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add pingback spec tests #12624

Merged
merged 1 commit into from Nov 26, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
110 changes: 110 additions & 0 deletions spec/modules/payloads_spec.rb
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