minor update

This commit is contained in:
Miroslav Stampar 2012-03-14 13:16:49 +00:00
parent cee9ff7885
commit e38b59a2ae

View File

@ -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<result>.*?)%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)