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

Skip to content

Commit 5e8b105

Browse files
committed
Fixes #1880
1 parent 414dd96 commit 5e8b105

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

lib/controller/checks.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,9 @@ def checkSqlInjection(place, parameter, value):
9898
tests = getSortedInjectionTests()
9999
seenPayload = set()
100100

101+
kb.data.setdefault("randomInt", str(randomInt(10)))
102+
kb.data.setdefault("randomStr", str(randomStr(10)))
103+
101104
while tests:
102105
test = tests.pop(0)
103106

@@ -381,8 +384,6 @@ def checkSqlInjection(place, parameter, value):
381384
# Use different page template than the original
382385
# one as we are changing parameters value, which
383386
# will likely result in a different content
384-
kb.data.setdefault("randomInt", str(randomInt(10)))
385-
kb.data.setdefault("randomStr", str(randomStr(10)))
386387

387388
if conf.invalidLogical:
388389
_ = int(kb.data.randomInt[:2])

lib/core/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
from lib.core.revision import getRevisionNumber
2020

2121
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
22-
VERSION = "1.0.5.38"
22+
VERSION = "1.0.5.39"
2323
REVISION = getRevisionNumber()
2424
STABLE = VERSION.count('.') <= 2
2525
VERSION_STRING = "sqlmap/%s#%s" % (VERSION, "stable" if STABLE else "dev")

0 commit comments

Comments
 (0)