diff --git a/lib/core/common.py b/lib/core/common.py index 5e0fb9d9c..3c8a86df9 100644 --- a/lib/core/common.py +++ b/lib/core/common.py @@ -606,7 +606,7 @@ def parseTargetDirect(): details = None for dbms in SUPPORTED_DBMS: - details = re.search("^(?P%s)://(?P(?P.+?)\:(?P.+?)\@)(?P(?P.+?)\:(?P[\d]+)\/)?(?P.+?)$" % dbms, conf.direct, re.I) + details = re.search("^(?P%s)://(?P(?P.+?)\:(?P.+?)\@)?(?P(?P.+?)\:(?P[\d]+)\/)?(?P.+?)$" % dbms, conf.direct, re.I) if details: conf.dbms = details.group('dbms') @@ -632,7 +632,8 @@ def parseTargetDirect(): break if not details: - errMsg = "invalid target details, valid syntax is for instance: mysql://USER:PASSWORD@DBMS_IP:DBMS_PORT/DATABASE_NAME" + errMsg = "invalid target details, valid syntax is for instance: 'mysql://USER:PASSWORD@DBMS_IP:DBMS_PORT/DATABASE_NAME'" + errMsg += " and/or: 'access://DATABASE_FILEPATH'" raise sqlmapSyntaxException, errMsg # TODO: add details for others python DBMS libraries