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.'
'; + echo "==========================================="; +} +else if ($listUrl[0] != "200") { + echo "

.env not exposed


"; + echo "==========================================="; +} + +if ($listUrl[1] == "200") { + echo "

Logs exposed

"; + echo ''.$url2.'
'; + echo "==========================================="; +} +else if ($listUrl[1] != "200") { + echo "

Logs file not exposed


"; + echo "==========================================="; +} + +if ($listUrl[2] == "405") { + echo '

Debug mode enabled

'; + echo ''.$url3.'
'; + echo "==========================================="; +} +else if ($listUrl[2] != "405") { + echo "

Debug mode in ".$input." disabled


"; + echo "==========================================="; +} + +?> \ No newline at end of file