This commit is contained in:
Miroslav Stampar 2015-09-03 10:32:45 +02:00
parent d06646e412
commit aee4c93c8b

View File

@ -32,14 +32,26 @@ class ICMPsh:
self._icmpslave = normalizePath(os.path.join(paths.SQLMAP_EXTRAS_PATH, "icmpsh", "icmpsh.exe_")) self._icmpslave = normalizePath(os.path.join(paths.SQLMAP_EXTRAS_PATH, "icmpsh", "icmpsh.exe_"))
def _selectRhost(self): def _selectRhost(self):
message = "what is the back-end DBMS address? [Enter for '%s' (detected)] " % self.remoteIP address = None
address = readInput(message, default=self.remoteIP) 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)
return address return address
def _selectLhost(self): def _selectLhost(self):
message = "what is the local address? [Enter for '%s' (detected)] " % self.localIP address = None
address = readInput(message, default=self.localIP) message = "what is the local address? "
if self.localIP:
message += "[Enter for '%s' (detected)] " % self.localIP
while not address:
address = readInput(message, default=self.localIP)
return address return address