diff --git a/ReportToolz/rep2.php b/ReportToolz/rep2.php index 1fb9489..3c78093 100755 --- a/ReportToolz/rep2.php +++ b/ReportToolz/rep2.php @@ -231,7 +231,7 @@ break; } - echo $line[$i]."\n"; // DEBUG + //echo $line[$i]."\n"; // DEBUG } $first_desc = explode("Description", $vuln[0]['desc']); @@ -454,8 +454,8 @@ function viewVulns($vuln){ $s = $h = $m = $l = $i = 0 ; - for ($i=0; $i < sizeof($vuln) ; $i++) { - switch ($vuln[$i]['risk']) { + for ($j=0; $j < sizeof($vuln) ; $j++) { + switch ($vuln[$j]['risk']) { case 'Serious': $s++; break; @@ -482,7 +482,8 @@ $ref = str_pad($vuln[$i]['ref'], 7); $title = str_pad($vuln[$i]['title'], 35); $risk = str_pad($vuln[$i]['risk'], 8); - $cvss = str_pad($vuln[$i]['cvss'], 8); + $cvs1 = explode("-", $vuln[$i]['cvss']); + $cvss = str_pad($cvs1[0], 8); $rem = str_pad($vuln[$i]['rem'], 15); $owasp = str_pad($vuln[$i]['owasp'], 30);