File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -981,6 +981,14 @@ def checkNullConnection():
981981 return kb .nullConnection is not None
982982
983983def checkConnection (suppressOutput = False ):
984+ if conf .ipv6 :
985+ warnMsg = "always check connection to a provided "
986+ warnMsg += "IPv6 address with a tool like ping6 "
987+ warnMsg += "(e.g. 'ping6 fe80::20c:29ff:fea8:6bf1%vmnet8') "
988+ warnMsg += "prior to running sqlmap to avoid "
989+ warnMsg += "any addressing issues"
990+ singleTimeWarnMessage (warnMsg )
991+
984992 if not any ([conf .proxy , conf .tor ]):
985993 try :
986994 socket .getaddrinfo (conf .hostname , None )
@@ -993,12 +1001,6 @@ def checkConnection(suppressOutput=False):
9931001 logger .info (infoMsg )
9941002
9951003 try :
996- if conf .ipv6 :
997- warnMsg = "always check connection to provided "
998- warnMsg += "IPv6 address with a tool like ping6 "
999- warnMsg += "(e.g. 'ping6 fe80::20c:29ff:fea8:6bf1%vmnet8')"
1000- singleTimeWarnMessage (warnMsg )
1001-
10021004 page , _ = Request .queryPage (content = True , noteResponseTime = False )
10031005 kb .originalPage = kb .pageTemplate = page
10041006
You can’t perform that action at this time.
0 commit comments