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:
Miroslav Stampar 2011-01-19 22:08:56 +00:00
parent 7ad41f9b19
commit c106dc829a

View File

@ -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()