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

Skip to content

Commit fee0627

Browse files
committed
Minor adjustment
1 parent da1ea48 commit fee0627

1 file changed

Lines changed: 7 additions & 5 deletions

File tree

lib/core/common.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@
4949
from lib.core.exception import sqlmapNoneDataException
5050
from lib.core.exception import sqlmapMissingDependence
5151
from lib.core.exception import sqlmapSyntaxException
52-
from lib.core.exception import sqlmapUnsupportedFeatureException
5352
from lib.core.settings import DESCRIPTION
5453
from lib.core.settings import IS_WIN
5554
from lib.core.settings import SITE
@@ -653,10 +652,13 @@ def parseTargetDirect():
653652
try:
654653
if dbmsName in ('Access', 'SQLite'):
655654
if remote:
656-
errMsg = "direct connection over the network for %s DBMS is not supported" % dbmsName
657-
raise sqlmapUnsupportedFeatureException, errMsg
658-
else:
659-
if not remote:
655+
warnMsg = "direct connection over the network for "
656+
warnMsg += "%s DBMS is not supported" % dbmsName
657+
logger.warn(warnMsg)
658+
659+
conf.hostname = "localhost"
660+
conf.port = 0
661+
elif not remote:
660662
errMsg = "missing remote connection details"
661663
raise sqlmapSyntaxException, errMsg
662664

0 commit comments

Comments
 (0)