mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-22 01:26:42 +03:00
Just in case commit related to the aee4c93c8b
This commit is contained in:
parent
00955a7eb5
commit
7a261ef447
|
@ -18,6 +18,7 @@ from lib.core.common import readInput
|
|||
from lib.core.data import conf
|
||||
from lib.core.data import logger
|
||||
from lib.core.data import paths
|
||||
from lib.core.exception import SqlmapDataException
|
||||
|
||||
class ICMPsh:
|
||||
"""
|
||||
|
@ -41,6 +42,9 @@ class ICMPsh:
|
|||
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):
|
||||
|
@ -53,6 +57,9 @@ class ICMPsh:
|
|||
while not address:
|
||||
address = readInput(message, default=self.localIP)
|
||||
|
||||
if conf.batch and not address:
|
||||
raise SqlmapDataException("local host address is missing")
|
||||
|
||||
return address
|
||||
|
||||
def _prepareIngredients(self, encode=True):
|
||||
|
|
Loading…
Reference in New Issue
Block a user