Пример #1
0
    def load_data(self):
        """ load metadata related to vuln"""

        # loading data
        response = json.loads(Information(self.id).get_all())
        classification = json.loads(Classification(self.id).get_all())
        risk = json.loads(Risk(self.id).get_cvss())
        inspection = json.loads(Inspection(self.id).get_all())
        exploitation = json.loads(Exploitation(self.id).get_exploits())
        defense = json.loads(Defense(self.id).get_all())

        # formatting the response
        response.update(classification)
        response.update(risk)
        response.update(inspection)
        response.update(exploitation)
        response.update(defense)

        return response
Пример #2
0
        update = Update()
        update.update()

    if args.information:
        id = args.information[0]
        print(Information(id).get_all())

    if args.classification:
        id = args.classification[0]
        from core.Classification import Classification
        #print(Classification(id).get_packages())
        print(Classification(id).get_all())

    if args.risk:
        id = args.risk[0]
        print(Risk(id).get_cvss())

    if args.inspection:
        id = args.inspection[0]
        print(Inspection(id).get_all())

    if args.exploitation:
        id = args.exploitation[0]
        print(Exploitation(id).get_exploits())

    if args.defense:
        id = args.defense[0]
        print(Defense(id).get_all())

    if args.export:
        id = args.export[0]