Fix for an Issue #999

This commit is contained in:
Miroslav Stampar 2014-12-07 15:55:22 +01:00
parent 4325f21b58
commit 0d931a7b09

View File

@ -1171,7 +1171,7 @@ def parseTargetDirect():
raise SqlmapSyntaxException(errMsg) raise SqlmapSyntaxException(errMsg)
for dbmsName, data in DBMS_DICT.items(): for dbmsName, data in DBMS_DICT.items():
if conf.dbms in data[0]: if dbmsName == conf.dbms or conf.dbms.lower() in data[0]:
try: try:
if dbmsName in (DBMS.ACCESS, DBMS.SQLITE, DBMS.FIREBIRD): if dbmsName in (DBMS.ACCESS, DBMS.SQLITE, DBMS.FIREBIRD):
if remote: if remote:
@ -1182,7 +1182,9 @@ def parseTargetDirect():
conf.hostname = "localhost" conf.hostname = "localhost"
conf.port = 0 conf.port = 0
elif not remote: elif not remote:
errMsg = "missing remote connection details" errMsg = "missing remote connection details (e.g. "
errMsg += "'mysql://USER:PASSWORD@DBMS_IP:DBMS_PORT/DATABASE_NAME' "
errMsg += "or 'access://DATABASE_FILEPATH')"
raise SqlmapSyntaxException(errMsg) raise SqlmapSyntaxException(errMsg)
if dbmsName in (DBMS.MSSQL, DBMS.SYBASE): if dbmsName in (DBMS.MSSQL, DBMS.SYBASE):