fix: use print_error instead of puts

GSoC/Meterpreter_Web_Console
phra 2018-05-19 03:26:49 +02:00
parent b010d23427
commit 5d37451dc8
No known key found for this signature in database
GPG Key ID: 91FF93D1B85D76B5
1 changed files with 1 additions and 1 deletions

View File

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