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

Skip to content

Commit 8e7d360

Browse files
committed
cleaner refactoring regarding last commit
1 parent 401763b commit 8e7d360

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

lib/techniques/union/use.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -308,15 +308,14 @@ def unionThread():
308308
items = parseUnionPage(output)
309309
if isNoneValue(items):
310310
continue
311-
items = arrayizeValue(unArrayizeValue(items))
312311
kb.locks.value.acquire()
313-
threadData.shared.value.append(items[0] if len(items) == 1 else items)
312+
threadData.shared.value.append(unArrayizeValue(items))
314313
kb.locks.value.release()
315314
else:
316315
items = output.replace(kb.chars.start, "").replace(kb.chars.stop, "").split(kb.chars.delimiter)
317316

318317
if conf.verbose == 1:
319-
status = "[%s] [INFO] %s: %s" % (time.strftime("%X"), "resumed" if threadData.resumed else "retrieved", safecharencode(",".join(map(lambda x: "\"%s\"" % x, items))))
318+
status = "[%s] [INFO] %s: %s" % (time.strftime("%X"), "resumed" if threadData.resumed else "retrieved", safecharencode(",".join(map(lambda x: "\"%s\"" % x, arrayizeValue(items)))))
320319

321320
if len(status) > width:
322321
status = "%s..." % status[:width - 3]

0 commit comments

Comments
 (0)