unbreak payloads over rpc
git-svn-id: file:///home/svn/framework3/trunk@10271 4d416f70-5f16-0410-b530-b9f4589650daunstable
parent
2769087435
commit
6422d8c2de
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue