From 31866b9b29a78bd38d7d7f6ef2bfaab1388b3693 Mon Sep 17 00:00:00 2001 From: Muhammad Daffa <36522826+MD15@users.noreply.github.com> Date: Fri, 10 Apr 2020 18:27:11 +0700 Subject: [PATCH] Create laravel.sh --- Mass Find Logs/laravel.sh | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 Mass Find Logs/laravel.sh diff --git a/Mass Find Logs/laravel.sh b/Mass Find Logs/laravel.sh new file mode 100644 index 0000000..1fa7045 --- /dev/null +++ b/Mass Find Logs/laravel.sh @@ -0,0 +1,19 @@ +#!/bin/bash +# Log Laravel Mass Scanner +LISTS=$1 + +if [[ ! -f ${LISTS} ]]; then + echo "ERROR: ${LISTS} not found" + echo "usage: bash $0 list.txt" + exit +fi + +for SITE in $(cat $LISTS); +do + if [[ $(curl --connect-timeout 3 --max-time 3 -kLs "${SITE}/wp-content/debug.log" ) =~ 'laravel\framework' ]]; then + echo -e "\e[32m[+] FOUND: ${SITE}storage/logs/laravel.log" + else + echo -e "\e[31m[-] NOT FOUND: ${SITE}" + fi + +done