1
mirror of https://github.com/rapid7/metasploit-framework synced 2024-11-12 11:52:01 +01:00

unbreak payloads over rpc

git-svn-id: file:///home/svn/framework3/trunk@10271 4d416f70-5f16-0410-b530-b9f4589650da
This commit is contained in:
James Lee 2010-09-09 05:19:04 +00:00
parent 2769087435
commit 6422d8c2de

View File

@ -126,7 +126,6 @@ class Module < Base
authenticate(token)
mod = _find_module(mtype,mname)
begin
case mtype
when 'exploit'
_run_exploit(mod, opts)
@ -136,9 +135,6 @@ class Module < Base
_run_payload(mod, opts)
end
rescue ::Exception => e
$stderr.puts "#{e.class} #{e} #{e.backtrace}"
end
end
protected
@ -199,8 +195,8 @@ protected
})
{"result" => "success", "payload" => res.unpack("H*")[0]}
rescue ::Exception
raise ::XMLRPC::FaultException.new(500, "failed to generate")
rescue ::Exception => e
raise ::XMLRPC::FaultException.new(500, "failed to generate: #{e.message}")
end
end