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

Skip to content

Commit 79d4d97

Browse files
committed
trivial code cleanup
1 parent 5b65d2e commit 79d4d97

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

lib/controller/checks.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -350,6 +350,7 @@ def checkSqlInjection(place, parameter, value):
350350
# will likely result in a different content
351351
kb.data.setdefault("randomInt", str(randomInt(10)))
352352
kb.data.setdefault("randomStr", str(randomStr(10)))
353+
353354
if conf.invalidLogical:
354355
_ = int(kb.data.randomInt[:2])
355356
origValue = "%s AND %s=%s" % (value, _, _ + 1)
@@ -359,6 +360,7 @@ def checkSqlInjection(place, parameter, value):
359360
origValue = kb.data.randomStr[:6]
360361
else:
361362
origValue = "-%s" % kb.data.randomInt[:4]
363+
362364
templatePayload = agent.payload(place, parameter, value="", newValue=origValue, where=where)
363365
elif where == PAYLOAD.WHERE.REPLACE:
364366
origValue = ""

0 commit comments

Comments
 (0)