Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8b0a132

Browse files
committed
minor update
1 parent 2198a60 commit 8b0a132

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

lib/controller/checks.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
from lib.core.common import preparePageForLineComparison
3232
from lib.core.common import randomInt
3333
from lib.core.common import randomStr
34+
from lib.core.common import readInput
3435
from lib.core.common import DynamicContentItem
3536
from lib.core.convert import md5hash
3637
from lib.core.data import conf
@@ -39,6 +40,7 @@
3940
from lib.core.data import paths
4041
from lib.core.exception import sqlmapConnectionException
4142
from lib.core.exception import sqlmapNoneDataException
43+
from lib.core.exception import sqlmapUserQuitException
4244
from lib.core.session import setString
4345
from lib.core.session import setRegexp
4446
from lib.request.connect import Connect as Request
@@ -223,6 +225,11 @@ def checkStability():
223225
warnMsg += "manual paragraph 'Page comparison' and provide a "
224226
warnMsg += "string or regular expression to match on"
225227
logger.warn(warnMsg)
228+
229+
message = "do you want to continue? [Y/n] "
230+
test = readInput(message, default="Y")
231+
if test and test[0] not in ("y", "Y"):
232+
raise sqlmapUserQuitException
226233

227234
checkDynamicContent(firstPage, secondPage)
228235

0 commit comments

Comments
 (0)