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

Skip to content

Commit a097ee1

Browse files
committed
Switching --invalid-bignum to a pure integer constant (more generic - more statements require pure integer constant)
1 parent a639dbb commit a097ee1

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

lib/controller/checks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ def checkSqlInjection(place, parameter, value):
332332
_ = randomInt(2)
333333
origValue = "%s AND %s=%s" % (value, _, _ + 1)
334334
elif conf.invalidBignum:
335-
origValue = "%d.%d" % (randomInt(6), randomInt(1))
335+
origValue = randomInt(6)
336336
else:
337337
origValue = "-%s" % randomInt()
338338
templatePayload = agent.payload(place, parameter, newValue=origValue, where=where)

lib/core/agent.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ def payload(self, place=None, parameter=None, value=None, newValue=None, where=N
117117
_ = randomInt(2)
118118
value = "%s%s AND %s=%s" % (origValue, match.group() if match else "", _, _ + 1)
119119
elif conf.invalidBignum:
120-
value = "%d.%d" % (randomInt(6), randomInt(1))
120+
value = randomInt(6)
121121
else:
122122
if newValue.startswith("-"):
123123
value = ""

0 commit comments

Comments
 (0)