Skip to content

Commit f2a7235

Browse files
committed
Add a test for the python/exec payload
1 parent c051ea5 commit f2a7235

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

modules/payloads/singles/python/exec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module MetasploitModule
2-
CachedSize = :dynamic
2+
CachedSize = 248
33

44
include Msf::Payload::Single
55
include Msf::Payload::Python

spec/modules/payloads_spec.rb

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2853,6 +2853,16 @@
28532853
reference_name: 'php/shell_findsock'
28542854
end
28552855

2856+
context 'python/exec' do
2857+
it_should_behave_like 'payload cached size is consistent',
2858+
ancestor_reference_names: [
2859+
'singles/python/exec'
2860+
],
2861+
dynamic_size: false,
2862+
modules_pathname: modules_pathname,
2863+
reference_name: 'python/exec'
2864+
end
2865+
28562866
context 'python/meterpreter/bind_tcp' do
28572867
it_should_behave_like 'payload cached size is consistent',
28582868
ancestor_reference_names: [

0 commit comments

Comments
 (0)