mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-22 09:36:35 +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 sqlmapMissingMandatoryOptionException
|
||||
from lib.core.exception import sqlmapMissingPrivileges
|
||||
from lib.core.exception import sqlmapSilentQuitException
|
||||
from lib.core.exception import sqlmapSyntaxException
|
||||
from lib.core.exception import sqlmapUnsupportedDBMSException
|
||||
from lib.core.exception import sqlmapUserQuitException
|
||||
|
@ -410,15 +411,11 @@ def __setMetasploit():
|
|||
if IS_WIN:
|
||||
warnMsg = "some sqlmap takeover functionalities are not yet "
|
||||
warnMsg += "supported on Windows. Please use Linux in a virtual "
|
||||
warnMsg += "machine for out-of-band features. sqlmap will now "
|
||||
warnMsg += "carry on ignoring out-of-band switches"
|
||||
logger.warn(warnMsg)
|
||||
warnMsg += "machine for out-of-band features."
|
||||
|
||||
conf.osPwn = None
|
||||
conf.osSmb = None
|
||||
conf.osBof = None
|
||||
logger.critical(warnMsg)
|
||||
|
||||
return
|
||||
raise sqlmapSilentQuitException
|
||||
|
||||
if conf.osSmb:
|
||||
isAdmin = runningAsAdmin()
|
||||
|
|
Loading…
Reference in New Issue
Block a user