| |
---|
| | $vulnPlace = 0; |
---|
| | $switch = 0; |
---|
| | $sub2 = 0; |
---|
| | $sub3 = 1; |
---|
| | echo "[=] Template $templateVer used\n"; |
---|
| | if(number_format($templateVer, 2) >= number_format(1.0, 2)){ |
---|
| | echo "[=] Template $templateVer used\n"; |
---|
| | |
---|
| | for ($i=$start; $i <= $end ; $i++) { |
---|
| | // change state (action to take) |
---|
| | /*** |
---|
| | * ~states~ |
---|
| |
---|
| | $first_desc = explode("Description", $vuln[0]['desc']); |
---|
| | |
---|
| | $vuln[0]['desc'] = $first_desc[sizeof($first_desc)-1]; |
---|
| | }else{ // old template or Dave's format |
---|
| | echo "[!] Daves Template\n"; |
---|
| | for ($i=$start; $i <= $end ; $i++) { |
---|
| | // change state (action to take) |
---|
| | /*** |
---|
| | * ~states~ |
---|
| |
---|
| | $vuln[$i]['desc'] = $jsonIssue['summary_issue']; |
---|
| | $vuln[$i]['fix'] = $jsonIssue['summary_solution']; |
---|
| | } |
---|
| | } |
---|
| | } |
---|
| | |
---|
| | |
---|
| | } |
---|
| | } |
---|
| | |
---|
| | //print_r($vuln); // DEBUG |
---|
| | echo "[+] vulnerabilities identified\n"; |
---|
| |
---|
| | |