diff --git a/Laravel Bug Scanner/result.php b/Laravel Bug Scanner/result.php new file mode 100644 index 0000000..701edda --- /dev/null +++ b/Laravel Bug Scanner/result.php @@ -0,0 +1,60 @@ + $value) { + $listUrl[] = getHttpcode($value); +} + +function getHttpcode($url){ + $ch = curl_init($url); + curl_setopt($ch, CURLOPT_HEADER, true); // we want headers + curl_setopt($ch, CURLOPT_NOBODY, true); + curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true); + curl_setopt($ch, CURLOPT_RETURNTRANSFER,1); + curl_setopt($ch, CURLOPT_TIMEOUT,10); + $output = curl_exec($ch); + $httpcode = curl_getinfo($ch, CURLINFO_HTTP_CODE); + curl_close($ch); + return $httpcode; +} + +// var_dump($listUrl[0]); + +if ($listUrl[0] == "200") { + echo "
.env exposed
"; + echo ''.$url.'.env not exposed
Logs exposed
"; + echo ''.$url2.'Logs file not exposed
Debug mode enabled
'; + echo ''.$url3.'Debug mode in ".$input." disabled