Adding waf script for detection of generic/unknown

This commit is contained in:
Miroslav Stampar
2016-05-27 16:34:41 +02:00
parent f9d01f682b
commit 69fd900108
5 changed files with 35 additions and 3 deletions

View File

@@ -998,6 +998,8 @@ def _setWafFunctions():
else:
kb.wafFunctions.append((_["detect"], _.get("__product__", filename[:-3])))
kb.wafFunctions = sorted(kb.wafFunctions, key=lambda _: "generic" in _[1].lower())
def _setThreads():
if not isinstance(conf.threads, int) or conf.threads <= 0:
conf.threads = 1