-
Notifications
You must be signed in to change notification settings - Fork 0
/
cuhoch.sh
34 lines (30 loc) · 1 KB
/
cuhoch.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/usr/bin/env bash
#CUrl HOst CHecker
#Coded by: @laztname <- find me on telegram :3
#Remove a credit doesn't make you look like coder --@ytyao xD
check() {
url=`curl -s $i --connect-timeout 3 -A "Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)"`
printf "\r[i] Checking host $i "
if [[ $url = *"404"* ]] || [[ $url = *"404"* ]] || [[ $url = *"301"* ]] || [[ $url == *"500"* ]] || [[ $url == *"html"* ]]; then
printf "$i\n" >> hostup.txt
elif [[ $url == "" ]]; then
printf "$i\n" >> hostdie.txt
else
printf "$i\n" >> hostup.txt
fi
}
if [[ -f $1 ]]; then
clear
echo "+-------------------------------+"
echo "| CUrl HOst CHecker |"
echo "| created with <3 by laztname |"
echo "+-------------------------------+"
echo "[!] Total List : `wc -l $1`"
for i in `cat $1`;
do check; sleep 0.1
done
printf "\n[i] Done, check it at hostup.txt\n"
else
printf "[!] Filemu mana mas?\n"
printf "[i] Usage $0 domain_list.txt\n"
fi