fix: use print_error instead of puts
parent
b010d23427
commit
5d37451dc8
|
@ -86,7 +86,7 @@ class MetasploitModule < Msf::Exploit::Remote
|
|||
sock.put(upload)
|
||||
buf = sock.get_once || ''
|
||||
rescue Rex::AddressInUse, ::Errno::ETIMEDOUT, Rex::HostUnreachable, Rex::ConnectionTimeout, Rex::ConnectionRefused, ::Timeout::Error, ::EOFError => e
|
||||
puts e
|
||||
print_error(e)
|
||||
elog("#{e.class} #{e.message}\n#{e.backtrace * "\n"}")
|
||||
ensure
|
||||
disconnect
|
||||
|
|
Loading…
Reference in New Issue