mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-11-20 15:10:23 +00:00
Implementing support for 429 (rate limit)
This commit is contained in:
parent
075d009bb7
commit
2d9e9ed959
6 changed files with 94 additions and 4 deletions
|
|
@ -161,8 +161,10 @@ class TestBrute(DbmsStateMixin, unittest.TestCase):
|
|||
|
||||
def _cbe(expression, expectingNone=True):
|
||||
calls["n"] += 1
|
||||
# initial sanity probe uses two random strings (no real column name)
|
||||
if "id" not in expression and "name" not in expression:
|
||||
# initial sanity probe queries a random table, not the real 'users' one - so keying on the
|
||||
# table name is collision-proof (unlike a column-name substring, which a random probe value
|
||||
# can incidentally contain, e.g. 'id')
|
||||
if "users" not in expression:
|
||||
return False
|
||||
# MySQL numeric-type follow-up: `not checkBooleanExpression(... REGEXP '[^0-9]')`.
|
||||
# 'id' is numeric (no non-digit chars => probe False => numeric);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue