Skip to content

Commit a9ea09a

Browse files
committed
Land rapid7#7909, Python process hiding for sessions -u
2 parents e1ade9c + 9e0cb97 commit a9ea09a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/post/multi/manage/shell_to_meterpreter.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ def run
174174
end
175175
when 'python'
176176
vprint_status("Transfer method: Python")
177-
cmd_exec("python -c \"#{payload_data}\"")
177+
cmd_exec("echo \"#{payload_data}\" | python")
178178
else
179179
vprint_status("Transfer method: Bourne shell [fallback]")
180180
exe = Msf::Util::EXE.to_executable(framework, larch, lplat, payload_data)

0 commit comments

Comments
 (0)