20 lines
427 B
Bash
20 lines
427 B
Bash
|
#!/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
|