mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-02-03 13:14:13 +03:00
Minor adjustment
This commit is contained in:
parent
da1ea48947
commit
fee062781f
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user