Method: Rex::Post::LDAP::Ui::Console#run_command
- Defined in:
- lib/rex/post/ldap/ui/console.rb
#run_command(dispatcher, method, arguments) ⇒ Object
Runs the specified command wrapper in something to catch exceptions.
87 88 89 90 91 92 93 94 95 96 97 98 |
# File 'lib/rex/post/ldap/ui/console.rb', line 87 def run_command(dispatcher, method, arguments) super rescue Timeout::Error log_error('Operation timed out.') rescue Rex::InvalidDestination => e log_error(e.) rescue ::Errno::EPIPE, ::OpenSSL::SSL::SSLError, ::IOError, Net::LDAP::ResponseMissingOrInvalidError session.kill rescue ::StandardError => e log_error("Error running command #{method}: #{e.class} #{e}") elog(e) end |