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

View File

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