@@ -0,0 +1,2031 @@
+import json%0Aimport re%0Afrom dojo.models import Finding%0A%0A__author__ = %22Roy Shoemake%22%0A__status__ = %22Development%22%0A%0A# Function to remove HTML tags%0ATAG_RE = re.compile(r'%3C%5B%5E%3E%5D+%3E')%0Adef cleantags(text):%0A    return TAG_RE.sub('', text)%0A%0Aclass NetsparkerParser(object):%0A    def __init__(self, filename, test):%0A        data = json.load(filename)%0A        dupes = dict()%0A%0A        for item in data%5B%22Vulnerabilities%22%5D:%0A            categories = ''%0A            language = ''%0A            mitigation = ''%0A            impact = ''%0A            references = ''%0A            findingdetail = ''%0A            title = ''%0A            group = ''%0A            status = ''%0A%0A            title = item%5B%22Name%22%5D%0A            findingdetail = cleantags(item%5B%22Description%22%5D)%0A            cwe = item%5B%22Classification%22%5D%5B%22Cwe%22%5D%0A            sev = item%5B%22Severity%22%5D%0A            mitigation = cleantags(item%5B%22RemedialProcedure%22%5D)%0A            references = cleantags(item%5B%22ExternalReferences%22%5D)%0A            url = item%5B%22Url%22%5D%0A            impact = cleantags(item%5B%22Impact%22%5D)%0A            dupe_key = title + item%5B%22Name%22%5D + item%5B%22Url%22%5D%0A            unsaved_req_resp = list()%0A             %0A            if dupe_key in dupes:%0A                find = dupes%5Bdupe_key%5D%0A            else:%0A                dupes%5Bdupe_key%5D = True%0A%0A                find = Finding(title=title,%0A                               test=test,%0A                               active=False,%0A                               verified=False,%0A                               description=findingdetail,%0A                               severity=sev.title(),%0A                               numerical_severity=Finding.get_numerical_severity(sev),%0A                               mitigation=mitigation,%0A                               impact=impact,%0A                               references=references,%0A                               url=url,%0A                               cwe=cwe,%0A                               static_finding=True)%0A                dupes%5Bdupe_key%5D = find%0A                findingdetail = ''%0A%0A        self.items = dupes.values()%0A

Create parser.py