Skip to content

Commit

Permalink
Unreachable and time out error identification
Browse files Browse the repository at this point in the history
  • Loading branch information
morisson committed Dec 19, 2013
1 parent 773d4c5 commit c881ef5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion modules/auxiliary/scanner/sap/sap_router_portscanner.rb
Expand Up @@ -239,7 +239,7 @@ def sap_port_info(port)

def parse_response_packet(response, ip, port)

#vprint_error("#{ip}:#{port} - response packet: #{response}")
vprint_error("#{ip}:#{port} - response packet: #{response}")

case response
when /NI_RTERR/
Expand All @@ -259,6 +259,10 @@ def parse_response_packet(response, ip, port)
vprint_error("#{ip}:#{port} - unknown host")
when /GetHostByName: '#{ip}' not found/
vprint_error("#{ip}:#{port} - unknown host")
when /connection to '#{ip}:#{port}' timed out/
vprint_error("#{ip}:#{port} - connection timed out")
when /partner '#{ip}:#{port}' not reached/
vprint_error("#{ip}:#{port} - host unreachable")
else
vprint_error("#{ip}:#{port} - unknown error message")
end
Expand Down

0 comments on commit c881ef5

Please sign in to comment.