Create mercury.sh
parent
63e238b803
commit
db96afe2ab
|
@ -0,0 +1,19 @@
|
|||
#!/bin/bash
|
||||
# .hg 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}/.hg/hgrc" ) =~ '[paths]' ]]; then
|
||||
echo -e "\e[32m[+] FOUND: ${SITE}.hg/hgrc
|
||||
else
|
||||
echo -e "\e[31m[-] NOT FOUND: ${SITE}"
|
||||
fi
|
||||
|
||||
done
|
Loading…
Reference in New Issue