sqlmapproject/sqlmap · error · SqlmapDataException
remote host address is missing
Error message
remote host address is missing
What it means
Interactive-input guard in icmpsh's _selectRhost: the back-end DBMS address could not be determined automatically and the operator provided none (empty answer in batch mode), so the ICMP tunnel peer is unknown.
Solutions
- Run interactively and supply the back-end host address when prompted
- Pre-provide the hostname/IP so it can be auto-detected
- Avoid --batch when the target address is not discoverable
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at lib/takeover/icmpsh.py:48 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/1ae27bff5591ed41.
Report an issue: GitHub.
Appendix: source
Thrown at lib/takeover/icmpsh.py:48
def _initVars(self):
self.lhostStr = None
self.rhostStr = None
self.localIP = getLocalIP()
self.remoteIP = getRemoteIP() or conf.hostname
self._icmpslave = normalizePath(os.path.join(paths.SQLMAP_EXTRAS_PATH, "icmpsh", "icmpsh.exe_"))
def _selectRhost(self):
address = None
message = "what is the back-end DBMS address? "
if self.remoteIP:
message += "[Enter for '%s' (detected)] " % self.remoteIP
while not address:
address = readInput(message, default=self.remoteIP)
if conf.batch and not address:
raise SqlmapDataException("remote host address is missing")
return address
def _selectLhost(self):
address = None
message = "what is the local address? "
if self.localIP:
message += "[Enter for '%s' (detected)] " % self.localIP
valid = None
while not valid:
valid = True
address = readInput(message, default=self.localIP or "")
try:
socket.inet_aton(address)
except socket.error:View on GitHub (pinned to 0a35b20e39)