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

Skip to content

Commit f88f6dc

Browse files
committed
Changing --invalid-bignum from float producing to int producing
1 parent fc02bad commit f88f6dc

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
@@ -333,7 +333,7 @@ def checkSqlInjection(place, parameter, value):
333333
_ = int(kb.data.randomInt[:2])
334334
origValue = "%s AND %s=%s" % (value, _, _ + 1)
335335
elif conf.invalidBignum:
336-
origValue = "%s.%s" % (kb.data.randomInt[:6], kb.data.randomInt[0])
336+
origValue = kb.data.randomInt[:6]
337337
else:
338338
origValue = "-%s" % kb.data.randomInt[:4]
339339
templatePayload = agent.payload(place, parameter, value="", newValue=origValue, where=where)

lib/core/agent.py

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

0 commit comments

Comments
 (0)