File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4545from lib .core .exception import sqlmapConnectionException
4646from lib .core .exception import sqlmapGenericException
4747from lib .core .exception import sqlmapNoneDataException
48- from lib .core .exception import sqlmapSiteTooDynamic
4948from lib .core .exception import sqlmapUserQuitException
5049from lib .core .session import setDynamicMarkings
5150from lib .core .session import setString
Original file line number Diff line number Diff line change @@ -50,9 +50,6 @@ class sqlmapUserQuitException(Exception):
5050class sqlmapRegExprException (Exception ):
5151 pass
5252
53- class sqlmapSiteTooDynamic (Exception ):
54- pass
55-
5653class sqlmapSyntaxException (Exception ):
5754 pass
5855
@@ -93,7 +90,6 @@ def unhandledException():
9390 sqlmapMissingMandatoryOptionException ,
9491 sqlmapNoneDataException ,
9592 sqlmapRegExprException ,
96- sqlmapSiteTooDynamic ,
9793 sqlmapSyntaxException ,
9894 sqlmapUndefinedMethod ,
9995 sqlmapMissingPrivileges ,
Original file line number Diff line number Diff line change 2020from lib .core .data import kb
2121from lib .core .data import logger
2222from lib .core .exception import sqlmapConnectionException
23+ from lib .core .exception import sqlmapGenericException
2324from lib .request .basic import decodePage
2425
2526class Google :
@@ -128,5 +129,10 @@ def search(self, googleDork):
128129 raise sqlmapConnectionException , errMsg
129130
130131 self .__matches = self .__parsePage (page )
132+
133+ if not self .__matches and "detected unusual traffic" in page :
134+ warnMsg = "Google has detected 'unusual' traffic from "
135+ warnMsg += "this computer disabling further searches"
136+ raise sqlmapGenericException , warnMsg
131137
132138 return self .__matches
You can’t perform that action at this time.
0 commit comments