Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 92e4cdb

Browse files
committed
raising critical when google detects strange traffic and also removing obsolete sqlmapSiteTooDynamic
1 parent 0712937 commit 92e4cdb

3 files changed

Lines changed: 6 additions & 5 deletions

File tree

lib/controller/checks.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@
4545
from lib.core.exception import sqlmapConnectionException
4646
from lib.core.exception import sqlmapGenericException
4747
from lib.core.exception import sqlmapNoneDataException
48-
from lib.core.exception import sqlmapSiteTooDynamic
4948
from lib.core.exception import sqlmapUserQuitException
5049
from lib.core.session import setDynamicMarkings
5150
from lib.core.session import setString

lib/core/exception.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,6 @@ class sqlmapUserQuitException(Exception):
5050
class sqlmapRegExprException(Exception):
5151
pass
5252

53-
class sqlmapSiteTooDynamic(Exception):
54-
pass
55-
5653
class 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,

lib/utils/google.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
from lib.core.data import kb
2121
from lib.core.data import logger
2222
from lib.core.exception import sqlmapConnectionException
23+
from lib.core.exception import sqlmapGenericException
2324
from lib.request.basic import decodePage
2425

2526
class 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

0 commit comments

Comments
 (0)