// Search Product (best to use CPE notation, e.g. cisco:ios:12.2
if vSearch:
for item in collection.find({"vulnerable_configuration": {"$regex" : vSearch}}):
// the scvOutput module is far from finished !!
if csvOutput:
// need to find a way to include 1 (vendor) link in general product searches
// probably using a command line parameter.
for entry in item["references"]:
if re.search("http://www.cisco.com",entry):
link = entry
else:
link = "[no vendor link found]"
After Change
print(item)
// Search Product (best to use CPE notation, e.g. cisco:ios:12.2
if vSearch:
for item in collection.find({"vulnerable_configuration": {"$regex" : vSearch}}).sort("last-modified",sorttype):
// the scvOutput module is far from finished !!
if csvOutput:
// need to find a way to include 1 (vendor) link in general product searches
// probably using a command line parameter.
for entry in item["references"]:
if re.search("http://www.cisco.com",entry):
link = entry
else:
link = "[no vendor link found]"