mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-09-01 08:41:24 +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:
parent
70688fb8b5
commit
f11d5c91e3
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue