sqlmapproject/sqlmap · error · SqlmapConnectionException
please check your Internet connection and rerun
Error message
please check your Internet connection and rerun
What it means
Fires in start() when the pre-run connectivity probe fails: checkInternet() returned False and every retry inside the loop of conf.retries attempts (each waiting 5 seconds) also failed, so sqlmap aborts on the assumption that no Internet access is available.
Solutions
- Verify network/DNS/proxy connectivity and re-run sqlmap
- If behind a proxy, configure it with --proxy/--proxy-cred so checkInternet() can succeed
- Raise --retries to give the built-in retry loop more attempts on flaky links
Defensive patterns
Strategy: retry
When it happens
Trigger: Thrown at lib/controller/controller.py:399 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of sqlmapproject/sqlmap@0a35b20e39 (2026-08-26).
Data as JSON: /api/errors/efadaa32bf36e1e0.
Report an issue: GitHub.
Appendix: source
Thrown at lib/controller/controller.py:399
infoMsg = "checking for Internet connection"
logger.info(infoMsg)
if not checkInternet():
warnMsg = "[%s] [WARNING] no connection detected" % time.strftime("%X")
dataToStdout(warnMsg)
valid = False
for _ in xrange(conf.retries):
if checkInternet():
valid = True
break
else:
dataToStdout('.')
time.sleep(5)
if not valid:
errMsg = "please check your Internet connection and rerun"
raise SqlmapConnectionException(errMsg)
else:
dataToStdout("\n")
conf.url = targetUrl
conf.method = targetMethod.upper().strip() if targetMethod else targetMethod
conf.data = targetData
conf.cookie = targetCookie
conf.httpHeaders = list(initialHeaders)
conf.httpHeaders.extend(targetHeaders or [])
if conf.randomAgent or conf.mobile:
for header, value in initialHeaders:
if header.upper() == HTTP_HEADER.USER_AGENT.upper():
conf.httpHeaders.append((header, value))
break
if conf.data:
# Note: explicitly URL encode __ ASP(.NET) parameters (e.g. to avoid problems with Base64 encoded '+' character) - standard procedure in web browsersView on GitHub (pinned to 0a35b20e39)