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

Skip to content

Commit 03d2c9c

Browse files
committed
placeholder message when --update is provided, remove when the function is updated to pull changes from git
1 parent 18be319 commit 03d2c9c

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

lib/core/update.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,17 @@
1616
from lib.core.data import conf
1717
from lib.core.data import logger
1818
from lib.core.data import paths
19+
from lib.core.exception import sqlmapUnsupportedFeatureException
1920
from lib.core.settings import IS_WIN
2021
from lib.core.settings import UNICODE_ENCODING
2122
from lib.core.subprocessng import pollProcess
2223

2324
def update():
25+
errMsg = "sqlmap is now hosted on GitHub at https://github.com/sqlmapproject/sqlmap. "
26+
errMsg += "The --update switch is currently outdated and not working. Please, "
27+
errMsg += "update sqlmap running 'git pull' for the time being"
28+
raise sqlmapUnsupportedFeatureException, errMsg
29+
2430
if not conf.updateAll:
2531
return
2632

0 commit comments

Comments
 (0)