Skip to content

Commit 09619ab

Browse files
committed
Catch AddressInUse when running commands from the meterpreter console
1 parent 72c0c59 commit 09619ab

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/rex/post/meterpreter/ui/console.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,8 @@ def run_command(dispatcher, method, arguments)
106106
log_error("Operation timed out.")
107107
rescue RequestError => info
108108
log_error(info.to_s)
109+
rescue Rex::AddressInUse => e
110+
log_error(e.message)
109111
rescue ::Errno::EPIPE, ::OpenSSL::SSL::SSLError, ::IOError
110112
self.client.kill
111113
rescue ::Exception => e

0 commit comments

Comments
 (0)