From f11d5c91e3354b836e8fde2cb0192fd03ced108a Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Thu, 12 May 2011 14:32:39 +0000 Subject: [PATCH] minor update so that only one DNS request per scan is being done (before this commit there were two) --- lib/controller/checks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/controller/checks.py b/lib/controller/checks.py index 77146bfc7..0c4820e41 100644 --- a/lib/controller/checks.py +++ b/lib/controller/checks.py @@ -848,7 +848,7 @@ def checkNullConnection(): def checkConnection(suppressOutput=False): try: - socket.gethostbyname(conf.hostname) + socket.getaddrinfo(conf.hostname, None) except socket.gaierror: errMsg = "host '%s' does not exist" % conf.hostname raise sqlmapConnectionException, errMsg