mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-08-03 22:31:34 +00:00
Fixes #1880
This commit is contained in:
parent
414dd96bbd
commit
5e8b105677
2 changed files with 4 additions and 3 deletions
|
|
@ -98,6 +98,9 @@ def checkSqlInjection(place, parameter, value):
|
|||
tests = getSortedInjectionTests()
|
||||
seenPayload = set()
|
||||
|
||||
kb.data.setdefault("randomInt", str(randomInt(10)))
|
||||
kb.data.setdefault("randomStr", str(randomStr(10)))
|
||||
|
||||
while tests:
|
||||
test = tests.pop(0)
|
||||
|
||||
|
|
@ -381,8 +384,6 @@ def checkSqlInjection(place, parameter, value):
|
|||
# Use different page template than the original
|
||||
# one as we are changing parameters value, which
|
||||
# will likely result in a different content
|
||||
kb.data.setdefault("randomInt", str(randomInt(10)))
|
||||
kb.data.setdefault("randomStr", str(randomStr(10)))
|
||||
|
||||
if conf.invalidLogical:
|
||||
_ = int(kb.data.randomInt[:2])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue