mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-06-05 13:43:27 +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):
|
def checkConnection(suppressOutput=False):
|
||||||
try:
|
try:
|
||||||
socket.gethostbyname(conf.hostname)
|
socket.getaddrinfo(conf.hostname, None)
|
||||||
except socket.gaierror:
|
except socket.gaierror:
|
||||||
errMsg = "host '%s' does not exist" % conf.hostname
|
errMsg = "host '%s' does not exist" % conf.hostname
|
||||||
raise sqlmapConnectionException, errMsg
|
raise sqlmapConnectionException, errMsg
|
||||||
|
|
Loading…
Reference in New Issue
Block a user