Exemplo n.º 1
0
        def cveDetails(cve):
            maxx, maxy = screen.getMaxXY()
            summary = splitByLength(cve['summary'], maxx - 18)

            text = ["CVE id    %s" % cve['id']]
            text.append("Summary   %s" % summary[0])
            for i, x in enumerate(summary[1:]):
                text.append("          %s" % summary[i + 1])
            text.append(" ")
            text.append("CVSS      Base:             %s" % (cve['cvss']))
            text.append("          Exploitability:   %s" %
                        (cve['exploitCVSS'] if 'exploitCVSS' in cve else ' -'))
            text.append("          Impact:           %s" %
                        (cve['impactCVSS'] if 'impactCVSS' in cve else ' -'))
            text.append(" ")
            text.append("Access    Vector:           %s" %
                        cve['access']['vector'])
            text.append("          Complexity:       %s" %
                        cve['access']['complexity'])
            text.append("          Authentication:   %s" %
                        cve['access']['authentication'])
            text.append(" ")
            text.append("Impact    Confidentiality:  %s" %
                        cve['impact']['confidentiality'])
            text.append("          Integrity:        %s" %
                        cve['impact']['integrity'])
            text.append("          Availability:     %s" %
                        cve['impact']['availability'])
            screen.scroll(text, footer=tDefFoot, nav=extendedNav)
Exemplo n.º 2
0
    def cveInfo(cve):
      lines=[{'f':'CVE id','v':cve['id']}]
      maxy,maxx=scr.getmaxyx()
      summary=splitByLength(cve['summary'],maxx-18)
      lines.append({'f':'Summary','v':summary[0]})
      for i,x in enumerate(summary[1:]):
        lines.append({'f':' ','v':summary[i+1]})
      lines.append({'f':' ','v':' '})
      lines.append({'f':'CVSS', 'v':'Base:           %s'%(cve['cvss'])})
      lines.append({'f':' ',    'v':'Exploitability: %s'%(cve['exploitCVSS'] if 'impactCVSS' in cve else ' -')})
      lines.append({'f':' ',    'v':'Impact:         %s'%(cve['impactCVSS'] if 'impactCVSS' in cve else ' -')})
      lines.append({'f':' ','v':' '})
      lines.append({'f':'Access', 'v':'Vector:           %s'%cve['access']['vector']})
      lines.append({'f':' ',      'v':'Complexity:       %s'%cve['access']['complexity']})
      lines.append({'f':' ',      'v':'Authentication:   %s'%cve['access']['authentication']})
      lines.append({'f':' ','v':' '})
      lines.append({'f':'Impact', 'v':'Confidentiality:  %s'%cve['impact']['confidentiality']})
      lines.append({'f':' ',      'v':'Integrity:        %s'%cve['impact']['integrity']})
      lines.append({'f':' ',      'v':'Availability:     %s'%cve['impact']['availability']})

      scroll(lines)
Exemplo n.º 3
0
    def cveDetails(cve):
      maxx, maxy = screen.getMaxXY()
      summary=splitByLength(cve['summary'],maxx-18)

      text=      ["CVE id    %s"%cve['id']]
      text.append("Summary   %s"%summary[0])
      for i, x in enumerate(summary[1:]):
        text.append("          %s"%summary[i+1])
      text.append(" ")
      text.append("CVSS      Base:             %s"%(cve['cvss']))
      text.append("          Exploitability:   %s"%(cve['exploitCVSS'] if 'exploitCVSS' in cve else ' -'))
      text.append("          Impact:           %s"%(cve['impactCVSS']  if 'impactCVSS'  in cve else ' -'))
      text.append(" ")
      text.append("Access    Vector:           %s"%cve['access']['vector'])
      text.append("          Complexity:       %s"%cve['access']['complexity'])
      text.append("          Authentication:   %s"%cve['access']['authentication'])
      text.append(" ")
      text.append("Impact    Confidentiality:  %s"%cve['impact']['confidentiality'])
      text.append("          Integrity:        %s"%cve['impact']['integrity'])
      text.append("          Availability:     %s"%cve['impact']['availability'])
      screen.scroll(text, footer=tDefFoot, nav=extendedNav)