mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-29 04:53:48 +03:00
Fixes #1384
This commit is contained in:
parent
d06646e412
commit
aee4c93c8b
|
@ -32,13 +32,25 @@ 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
|
||||||
|
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)
|
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
|
||||||
|
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)
|
address = readInput(message, default=self.localIP)
|
||||||
|
|
||||||
return address
|
return address
|
||||||
|
|
Loading…
Reference in New Issue
Block a user