Commit 27bf3269 authored by Pieter-Jan's avatar Pieter-Jan
Browse files

Merge pull request #91 from PidgeyL/development

file structure update
parents d40656a8 e878f1e1
Loading
Loading
Loading
Loading
+0 −0

File moved.

+0 −0

File moved.

+4 −3
Original line number Diff line number Diff line
@@ -22,8 +22,9 @@ sys.path.append(os.path.join(runPath, ".."))

import argparse

from lib import CVEs
import lib.CVEs as cves 
from lib.Config import Configuration
from lib.ProgressBar import progressbar

# connect to db
db = Configuration.getMongoConnection()
@@ -35,7 +36,7 @@ argParser.add_argument('-l', default=None, help='Number of last entries to index
argParser.add_argument('-n', action='store_true', default=False, help='lookup complete cpe (Common Platform Enumeration) name for vulnerable configuration to add in the index')
args = argParser.parse_args()

c = CVEs.last(namelookup=args.n)
c = cves.last(namelookup=args.n)

indexpath = Configuration.getIndexdir()

@@ -69,7 +70,7 @@ def getcve(cveid=None):
        return False
    return collection.find_one({'id': cveid})

for cveid in dumpallcveid(entry=args.l):
for cveid in progressbar(dumpallcveid(entry=args.l),prefix="Processing"):
    writer = ix.writer()
    item = getcve(cveid=cveid)
    title = item['summary'][0:70]
+0 −0

File moved.

+0 −0

File moved.

Loading