mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-06 12:41:30 +00:00
minor update so that only one DNS request per scan is being done (before this commit there were two)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user