mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-25 19:13:48 +03:00
raising critical when google detects strange traffic and also removing obsolete sqlmapSiteTooDynamic
This commit is contained in:
parent
07129371bf
commit
92e4cdb241
|
@ -45,7 +45,6 @@ from lib.core.enums import PLACE
|
||||||
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.session import setDynamicMarkings
|
from lib.core.session import setDynamicMarkings
|
||||||
from lib.core.session import setString
|
from lib.core.session import setString
|
||||||
|
|
|
@ -50,9 +50,6 @@ class sqlmapUserQuitException(Exception):
|
||||||
class sqlmapRegExprException(Exception):
|
class sqlmapRegExprException(Exception):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
class sqlmapSiteTooDynamic(Exception):
|
|
||||||
pass
|
|
||||||
|
|
||||||
class sqlmapSyntaxException(Exception):
|
class sqlmapSyntaxException(Exception):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
@ -93,7 +90,6 @@ exceptionsTuple = (
|
||||||
sqlmapMissingMandatoryOptionException,
|
sqlmapMissingMandatoryOptionException,
|
||||||
sqlmapNoneDataException,
|
sqlmapNoneDataException,
|
||||||
sqlmapRegExprException,
|
sqlmapRegExprException,
|
||||||
sqlmapSiteTooDynamic,
|
|
||||||
sqlmapSyntaxException,
|
sqlmapSyntaxException,
|
||||||
sqlmapUndefinedMethod,
|
sqlmapUndefinedMethod,
|
||||||
sqlmapMissingPrivileges,
|
sqlmapMissingPrivileges,
|
||||||
|
|
|
@ -20,6 +20,7 @@ from lib.core.data import conf
|
||||||
from lib.core.data import kb
|
from lib.core.data import kb
|
||||||
from lib.core.data import logger
|
from lib.core.data import logger
|
||||||
from lib.core.exception import sqlmapConnectionException
|
from lib.core.exception import sqlmapConnectionException
|
||||||
|
from lib.core.exception import sqlmapGenericException
|
||||||
from lib.request.basic import decodePage
|
from lib.request.basic import decodePage
|
||||||
|
|
||||||
class Google:
|
class Google:
|
||||||
|
@ -129,4 +130,9 @@ class Google:
|
||||||
|
|
||||||
self.__matches = self.__parsePage(page)
|
self.__matches = self.__parsePage(page)
|
||||||
|
|
||||||
|
if not self.__matches and "detected unusual traffic" in page:
|
||||||
|
warnMsg = "Google has detected 'unusual' traffic from "
|
||||||
|
warnMsg += "this computer disabling further searches"
|
||||||
|
raise sqlmapGenericException, warnMsg
|
||||||
|
|
||||||
return self.__matches
|
return self.__matches
|
||||||
|
|
Loading…
Reference in New Issue
Block a user