From 03d2c9c8184868f80f7b2dec6f3cccb993c8895f Mon Sep 17 00:00:00 2001 From: Bernardo Damele Date: Sun, 1 Jul 2012 23:59:44 +0100 Subject: [PATCH] placeholder message when --update is provided, remove when the function is updated to pull changes from git --- lib/core/update.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/core/update.py b/lib/core/update.py index eab1348fb..fd2652133 100644 --- a/lib/core/update.py +++ b/lib/core/update.py @@ -16,11 +16,17 @@ from lib.core.common import getUnicode from lib.core.data import conf from lib.core.data import logger from lib.core.data import paths +from lib.core.exception import sqlmapUnsupportedFeatureException from lib.core.settings import IS_WIN from lib.core.settings import UNICODE_ENCODING from lib.core.subprocessng import pollProcess def update(): + errMsg = "sqlmap is now hosted on GitHub at https://github.com/sqlmapproject/sqlmap. " + errMsg += "The --update switch is currently outdated and not working. Please, " + errMsg += "update sqlmap running 'git pull' for the time being" + raise sqlmapUnsupportedFeatureException, errMsg + if not conf.updateAll: return