Reverting set() brace form because of Python 2.6 compatibility issues

This commit is contained in:
Miroslav Stampar
2018-01-31 11:24:28 +01:00
parent 0a8bc52910
commit 10fd004dec
8 changed files with 18 additions and 15 deletions

View File

@@ -60,13 +60,13 @@ class Enumeration(Custom, Databases, Entries, Search, Users):
bannerParser(kb.data.banner)
if conf.os and conf.os == "windows":
kb.bannerFp["type"] = {"Windows"}
kb.bannerFp["type"] = set(["Windows"])
elif conf.os and conf.os == "linux":
kb.bannerFp["type"] = {"Linux"}
kb.bannerFp["type"] = set(["Linux"])
elif conf.os:
kb.bannerFp["type"] = {"%s%s" % (conf.os[0].upper(), conf.os[1:])}
kb.bannerFp["type"] = set(["%s%s" % (conf.os[0].upper(), conf.os[1:])])
if conf.os:
setOs()