sqlmapproject/sqlmap · error · SqlmapMissingPrivileges
you need to run sqlmap as an administrator if you want to…
Error message
you need to run sqlmap as an administrator if you want to perform a DNS data exfiltration attack as it will need to listen on privileged UDP port 53 for incoming address resolution attempts
What it means
Error "you need to run sqlmap as an administrator if you want to perform a DNS data exfiltration attack as it will need to listen on privileged UDP port 53 for incoming address resolution attempts" thrown in sqlmapproject/sqlmap.
Solutions
- Re-run sqlmap as administrator/root so it can listen on privileged UDP port 53
- On Linux use sudo; on Windows run the console as Administrator
- Delegate the --dns-domain's NS records to the machine that will run sqlmap
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at lib/core/option.py:2675 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/005d30e3623a1b4f.
Report an issue: GitHub.
Appendix: source
Thrown at lib/core/option.py:2675
infoMsg = "setting up DNS server instance"
logger.info(infoMsg)
isAdmin = runningAsAdmin()
if isAdmin:
try:
conf.dnsServer = DNSServer()
conf.dnsServer.run()
except socket.error as ex:
errMsg = "there was an error while setting up "
errMsg += "DNS server instance ('%s')" % getSafeExString(ex)
raise SqlmapGenericException(errMsg)
else:
errMsg = "you need to run sqlmap as an administrator "
errMsg += "if you want to perform a DNS data exfiltration attack "
errMsg += "as it will need to listen on privileged UDP port 53 "
errMsg += "for incoming address resolution attempts"
raise SqlmapMissingPrivileges(errMsg)
def _setProxyList():
if not conf.proxyFile:
return
conf.proxyList = []
# Note: preserve an explicit scheme and any 'user:pass@' credentials (entries use the same format
# as --proxy); otherwise a SOCKS proxy is silently downgraded to HTTP and proxy auth is dropped
for match in re.finditer(r"(?i)((http[^:\s]*|socks[^:\s]*)://)?(?:([^:@\s/]+:[^@\s/]*)@)?([\w\-.]+):(\d+)", readCachedFileContent(conf.proxyFile)):
_, type_, cred, address, port = match.groups()
conf.proxyList.append("%s://%s%s:%s" % (type_ or "http", ("%s@" % cred) if cred else "", address, port))
def _setTorProxySettings():
if not conf.tor:
return
if conf.torType == PROXY_TYPE.HTTP:
_setTorHttpProxySettings()View on GitHub (pinned to 0a35b20e39)