From a7787e83b807d7776986e546e23a510a6dc0b95d Mon Sep 17 00:00:00 2001 From: stamparm Date: Tue, 18 Jun 2013 12:52:36 +0200 Subject: [PATCH] Minor fix for case-insensitive union duplicates --- lib/techniques/union/test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/techniques/union/test.py b/lib/techniques/union/test.py index d64377fff..48325b444 100644 --- a/lib/techniques/union/test.py +++ b/lib/techniques/union/test.py @@ -186,7 +186,7 @@ def _unionPosition(comment, place, parameter, prefix, suffix, count, where=PAYLO if content and phrase in content: validPayload = payload - kb.unionDuplicates = content.count(phrase) > 1 + kb.unionDuplicates = len(re.findall(phrase, content, re.I)) > 1 vector = (position, count, comment, prefix, suffix, kb.uChar, where, kb.unionDuplicates) if where == PAYLOAD.WHERE.ORIGINAL: