Minor adjustment

This commit is contained in:
Bernardo Damele 2010-04-13 11:13:01 +00:00
parent da1ea48947
commit fee062781f

View File

@ -49,7 +49,6 @@ from lib.core.exception import sqlmapFilePathException
from lib.core.exception import sqlmapNoneDataException from lib.core.exception import sqlmapNoneDataException
from lib.core.exception import sqlmapMissingDependence from lib.core.exception import sqlmapMissingDependence
from lib.core.exception import sqlmapSyntaxException from lib.core.exception import sqlmapSyntaxException
from lib.core.exception import sqlmapUnsupportedFeatureException
from lib.core.settings import DESCRIPTION from lib.core.settings import DESCRIPTION
from lib.core.settings import IS_WIN from lib.core.settings import IS_WIN
from lib.core.settings import SITE from lib.core.settings import SITE
@ -653,10 +652,13 @@ def parseTargetDirect():
try: try:
if dbmsName in ('Access', 'SQLite'): if dbmsName in ('Access', 'SQLite'):
if remote: if remote:
errMsg = "direct connection over the network for %s DBMS is not supported" % dbmsName warnMsg = "direct connection over the network for "
raise sqlmapUnsupportedFeatureException, errMsg warnMsg += "%s DBMS is not supported" % dbmsName
else: logger.warn(warnMsg)
if not remote:
conf.hostname = "localhost"
conf.port = 0
elif not remote:
errMsg = "missing remote connection details" errMsg = "missing remote connection details"
raise sqlmapSyntaxException, errMsg raise sqlmapSyntaxException, errMsg