From ae3455a0c2131abeb610065f689ca02cdb260f36 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Tue, 30 Mar 2010 11:28:14 +0000 Subject: [PATCH] more update --- lib/core/common.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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