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

Skip to content

Commit e2a60b3

Browse files
committed
minor fix
1 parent 3da8f86 commit e2a60b3

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

lib/techniques/union/test.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,8 @@ def __unionPosition(comment, place, parameter, prefix, suffix, count, where=PAYL
186186

187187
if content and phrase in content:
188188
validPayload = payload
189-
vector = (position, count, comment, prefix, suffix, kb.uChar, where, content.count(phrase) > 1)
189+
kb.unionDuplicates = content.count(phrase) > 1
190+
vector = (position, count, comment, prefix, suffix, kb.uChar, where, kb.unionDuplicates)
190191

191192
if where == PAYLOAD.WHERE.ORIGINAL:
192193
# Prepare expression with delimiters
@@ -204,7 +205,7 @@ def __unionPosition(comment, place, parameter, prefix, suffix, count, where=PAYL
204205
content = "%s%s".lower() % (page or "", listToStrValue(headers.headers if headers else None) or "")
205206

206207
if not all(_ in content for _ in (phrase, phrase2)):
207-
vector = (position, count, comment, prefix, suffix, kb.uChar, PAYLOAD.WHERE.NEGATIVE)
208+
vector = (position, count, comment, prefix, suffix, kb.uChar, PAYLOAD.WHERE.NEGATIVE, kb.unionDuplicates)
208209

209210
unionErrorCase = kb.errorIsNone and wasLastRequestDBMSError()
210211

0 commit comments

Comments
 (0)