Skip to content

Commit

Permalink
Add a test for the python/exec payload
Browse files Browse the repository at this point in the history
  • Loading branch information
zeroSteiner committed Oct 4, 2024
1 parent c051ea5 commit f2a7235
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion modules/payloads/singles/python/exec.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module MetasploitModule
CachedSize = :dynamic
CachedSize = 248

include Msf::Payload::Single
include Msf::Payload::Python
Expand Down
10 changes: 10 additions & 0 deletions spec/modules/payloads_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2853,6 +2853,16 @@
reference_name: 'php/shell_findsock'
end

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

context 'python/meterpreter/bind_tcp' do
it_should_behave_like 'payload cached size is consistent',
ancestor_reference_names: [
Expand Down

0 comments on commit f2a7235

Please sign in to comment.