From e38b59a2ae54fd80f67448ca5de329cd55768276 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Wed, 14 Mar 2012 13:16:49 +0000 Subject: [PATCH] minor update --- lib/techniques/union/use.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/techniques/union/use.py b/lib/techniques/union/use.py index 6d0ed4a67..fdad01d21 100644 --- a/lib/techniques/union/use.py +++ b/lib/techniques/union/use.py @@ -24,6 +24,7 @@ from lib.core.common import hashDBRetrieve from lib.core.common import hashDBWrite from lib.core.common import incrementCounter from lib.core.common import initTechnique +from lib.core.common import isNoneValue from lib.core.common import isNumPosStrValue from lib.core.common import listToStrValue from lib.core.common import parseUnionPage @@ -302,8 +303,9 @@ def unionUse(expression, unpack=True, dump=False): if output: if all(map(lambda x: x in output, [kb.chars.start, kb.chars.stop])): - #items = extractRegexResult(r'%s(?P.*?)%s' % (kb.chars.start, kb.chars.stop), output, re.DOTALL | re.IGNORECASE).split(kb.chars.delimiter) items = parseUnionPage(output) + if isNoneValue(items): + continue items = items[0] if isinstance(items, list) and len(items) == 1 else items kb.locks.value.acquire() threadData.shared.value.append(items[0] if len(items) == 1 else items)