mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-04-20 09:02:02 +03: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:
parent
70688fb8b5
commit
f11d5c91e3
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user