mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-22 09:36:35 +03:00
bug fix (reported by ToR)
This commit is contained in:
parent
f3fe19c4e5
commit
96d88877ba
|
@ -31,8 +31,8 @@ from lib.core.enums import NULLCONNECTION
|
||||||
from lib.core.exception import sqlmapConnectionException
|
from lib.core.exception import sqlmapConnectionException
|
||||||
from lib.core.exception import sqlmapGenericException
|
from lib.core.exception import sqlmapGenericException
|
||||||
from lib.core.exception import sqlmapNoneDataException
|
from lib.core.exception import sqlmapNoneDataException
|
||||||
|
from lib.core.exception import sqlmapSiteTooDynamic
|
||||||
from lib.core.exception import sqlmapUserQuitException
|
from lib.core.exception import sqlmapUserQuitException
|
||||||
from lib.core.exception import sqlmapSilentQuitException
|
|
||||||
from lib.core.session import setString
|
from lib.core.session import setString
|
||||||
from lib.core.session import setRegexp
|
from lib.core.session import setRegexp
|
||||||
from lib.request.connect import Connect as Request
|
from lib.request.connect import Connect as Request
|
||||||
|
@ -285,7 +285,8 @@ def checkStability():
|
||||||
|
|
||||||
kb.nullConnection = None
|
kb.nullConnection = None
|
||||||
else:
|
else:
|
||||||
raise sqlmapSilentQuitException
|
errMsg = "Empty value supplied"
|
||||||
|
raise sqlmapNoneDataException, errMsg
|
||||||
|
|
||||||
elif test and test[0] in ("r", "R"):
|
elif test and test[0] in ("r", "R"):
|
||||||
message = "please enter value for parameter 'regex': "
|
message = "please enter value for parameter 'regex': "
|
||||||
|
@ -301,7 +302,8 @@ def checkStability():
|
||||||
|
|
||||||
kb.nullConnection = None
|
kb.nullConnection = None
|
||||||
else:
|
else:
|
||||||
raise sqlmapSilentQuitException
|
errMsg = "Empty value supplied"
|
||||||
|
raise sqlmapNoneDataException, errMsg
|
||||||
else:
|
else:
|
||||||
checkDynamicContent(firstPage, secondPage)
|
checkDynamicContent(firstPage, secondPage)
|
||||||
|
|
||||||
|
@ -309,8 +311,7 @@ def checkStability():
|
||||||
errMsg = "target url is too dynamic. unable to continue. "
|
errMsg = "target url is too dynamic. unable to continue. "
|
||||||
errMsg += "consider using other switches (e.g. "
|
errMsg += "consider using other switches (e.g. "
|
||||||
errMsg += "--longest-common, --string, --text-only, etc.)"
|
errMsg += "--longest-common, --string, --text-only, etc.)"
|
||||||
logger.error(errMsg)
|
raise sqlmapSiteTooDynamic, errMsg
|
||||||
raise sqlmapSilentQuitException
|
|
||||||
|
|
||||||
return kb.pageStable
|
return kb.pageStable
|
||||||
|
|
||||||
|
|
|
@ -308,9 +308,6 @@ def start():
|
||||||
checkForParenthesis()
|
checkForParenthesis()
|
||||||
action()
|
action()
|
||||||
|
|
||||||
except sqlmapSilentQuitException:
|
|
||||||
raise
|
|
||||||
|
|
||||||
except KeyboardInterrupt:
|
except KeyboardInterrupt:
|
||||||
if conf.multipleTargets:
|
if conf.multipleTargets:
|
||||||
warnMsg = "Ctrl+C detected in multiple target mode"
|
warnMsg = "Ctrl+C detected in multiple target mode"
|
||||||
|
@ -331,6 +328,9 @@ def start():
|
||||||
except sqlmapUserQuitException:
|
except sqlmapUserQuitException:
|
||||||
raise
|
raise
|
||||||
|
|
||||||
|
except sqlmapSilentQuitException:
|
||||||
|
raise
|
||||||
|
|
||||||
except exceptionsTuple, e:
|
except exceptionsTuple, e:
|
||||||
e = getUnicode(e)
|
e = getUnicode(e)
|
||||||
|
|
||||||
|
|
|
@ -50,6 +50,9 @@ class sqlmapUserQuitException(Exception):
|
||||||
class sqlmapRegExprException(Exception):
|
class sqlmapRegExprException(Exception):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
class sqlmapSiteTooDynamic(Exception):
|
||||||
|
pass
|
||||||
|
|
||||||
class sqlmapSyntaxException(Exception):
|
class sqlmapSyntaxException(Exception):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
@ -89,9 +92,8 @@ exceptionsTuple = (
|
||||||
sqlmapMissingDependence,
|
sqlmapMissingDependence,
|
||||||
sqlmapMissingMandatoryOptionException,
|
sqlmapMissingMandatoryOptionException,
|
||||||
sqlmapNoneDataException,
|
sqlmapNoneDataException,
|
||||||
sqlmapSilentQuitException,
|
|
||||||
sqlmapUserQuitException,
|
|
||||||
sqlmapRegExprException,
|
sqlmapRegExprException,
|
||||||
|
sqlmapSiteTooDynamic,
|
||||||
sqlmapSyntaxException,
|
sqlmapSyntaxException,
|
||||||
sqlmapUndefinedMethod,
|
sqlmapUndefinedMethod,
|
||||||
sqlmapMissingPrivileges,
|
sqlmapMissingPrivileges,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user