mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-26 11:33:47 +03:00
more proper way to deal with this because without it warn message is just fast scrolled while leaving users confused (why it doesn't run)
This commit is contained in:
parent
7ad41f9b19
commit
c106dc829a
|
@ -56,6 +56,7 @@ from lib.core.exception import sqlmapGenericException
|
||||||
from lib.core.exception import sqlmapMissingDependence
|
from lib.core.exception import sqlmapMissingDependence
|
||||||
from lib.core.exception import sqlmapMissingMandatoryOptionException
|
from lib.core.exception import sqlmapMissingMandatoryOptionException
|
||||||
from lib.core.exception import sqlmapMissingPrivileges
|
from lib.core.exception import sqlmapMissingPrivileges
|
||||||
|
from lib.core.exception import sqlmapSilentQuitException
|
||||||
from lib.core.exception import sqlmapSyntaxException
|
from lib.core.exception import sqlmapSyntaxException
|
||||||
from lib.core.exception import sqlmapUnsupportedDBMSException
|
from lib.core.exception import sqlmapUnsupportedDBMSException
|
||||||
from lib.core.exception import sqlmapUserQuitException
|
from lib.core.exception import sqlmapUserQuitException
|
||||||
|
@ -410,15 +411,11 @@ def __setMetasploit():
|
||||||
if IS_WIN:
|
if IS_WIN:
|
||||||
warnMsg = "some sqlmap takeover functionalities are not yet "
|
warnMsg = "some sqlmap takeover functionalities are not yet "
|
||||||
warnMsg += "supported on Windows. Please use Linux in a virtual "
|
warnMsg += "supported on Windows. Please use Linux in a virtual "
|
||||||
warnMsg += "machine for out-of-band features. sqlmap will now "
|
warnMsg += "machine for out-of-band features."
|
||||||
warnMsg += "carry on ignoring out-of-band switches"
|
|
||||||
logger.warn(warnMsg)
|
|
||||||
|
|
||||||
conf.osPwn = None
|
logger.critical(warnMsg)
|
||||||
conf.osSmb = None
|
|
||||||
conf.osBof = None
|
|
||||||
|
|
||||||
return
|
raise sqlmapSilentQuitException
|
||||||
|
|
||||||
if conf.osSmb:
|
if conf.osSmb:
|
||||||
isAdmin = runningAsAdmin()
|
isAdmin = runningAsAdmin()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user