From 7a261ef447f0f0116608d3f27756e71598c83c2a Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Thu, 10 Sep 2015 15:19:33 +0200 Subject: [PATCH] Just in case commit related to the aee4c93c8b0ca9299134c65700675f8222e8a4d5 --- lib/takeover/icmpsh.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/takeover/icmpsh.py b/lib/takeover/icmpsh.py index 2e5d3253c..fc742b04a 100644 --- a/lib/takeover/icmpsh.py +++ b/lib/takeover/icmpsh.py @@ -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):