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