-
Notifications
You must be signed in to change notification settings - Fork 6
/
isup.sh
78 lines (72 loc) · 2.98 KB
/
isup.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
#!/bin/bash
# Alpha Bro Here :3
BLUE='\033[94m'
RED='\033[91m'
GREEN='\033[92m'
ORANGE='\033[93m'
RESET='\e[0m'
TARGET="$1"
CURRENT_PATH=$(pwd)
if [ -z $TARGET ]; then
echo -e "$RED _ _ $RESET "
echo -e "$RED / |___ _ _ _ __ ___| |__ $RESET "
echo -e "$RED | / __| | | | '_ \ / __| '_ \ $RESET "
echo -e "$RED | \__ \ |_| | |_) | _ \__ \ | | | $RESET "
echo -e "$RED |_|___/\__,_| .__/ (_) |___/_| |_| $RESET "
echo -e "$RED |_| $RESET "
echo ""
echo -e "$GREEN [+] by @___0x00$RESET"
echo -e "$GREEN [+] http://rootnep.al$RESET"
echo -e "$GREEN [-] Usage: isup.sh <targetlist>$RESET"
exit
fi
if [[ $TARGET == "--help" ]] || [[ $TARGET == "-h" ]]; then
echo -e "$BLUE _ _ $RESET "
echo -e "$BLUE / |___ _ _ _ __ ___| |__ $RESET "
echo -e "$BLUE | / __| | | | '_ \ / __| '_ \ $RESET "
echo -e "$BLUE | \__ \ |_| | |_) | _ \__ \ | | | $RESET "
echo -e "$BLUE |_|___/\__,_| .__/ (_) |___/_| |_| $RESET "
echo -e "$BLUE |_| $RESET "
echo ""
echo -e "$GREEN [+] by @___0x00$RESET"
echo -e "$GREEN [+] https://medium.com/admin. $RESET"
echo -e "$GREEN [+] Find alive host from huge domains dumps $RESET"
echo -e "$GREEN [-] Usage: isup.sh <files>$RESET"
exit
fi
if [ ! -f $TARGET ]; then
echo -e "$RED [+] --------- File Not Found -------------- [+] $RESET"
echo -e "$RED [+] --------- Check - FILE PATH -------------- [+] $RESET"
exit
fi
createdir=$(mkdir -p "$CURRENT_PATH/tmp/")
FILENAME=$( basename $TARGET )
echo -e "$RED _ _ $RESET "
echo -e "$RED / |___ _ _ _ __ ___| |__ $RESET "
echo -e "$RED | / __| | | | '_ \ / __| '_ \ $RESET "
echo -e "$RED | \__ \ |_| | |_) | _ \__ \ | | | $RESET "
echo -e "$RED |_|___/\__,_| .__/ (_) |___/_| |_| $RESET "
echo -e "$RED |_| $RESET "
echo -e ""
echo -e "$ORANGE [+] by @___0x00$RESET"
echo -e "$ORANGE + ------------------------------=[Gathering Subdomains]=-------------- +$RESET"
echo -e ""
for foo in $(cat $TARGET) #demolist: https://hastebin.com/ahelalunan.css #expired
do
ping -c1 -W1 $foo > /dev/null 2>&1
if [[ $? -eq 0 ]];
then
echo -e "$ORANGE [+]--- VALID ---[+] $foo $RESET"
echo -e "$foo" | tee -a $CURRENT_PATH/tmp/valid-$FILENAME > /dev/null 2>&1
else
echo -e "$foo" | tee -a $CURRENT_PATH/tmp/notvalid-$FILENAME
fi
done
echo -e ""
echo -e "$BLUE Working SubDomains saved to: tmp/valid-$FILENAME"
echo -e "$BLUE Invalid SubDomains saved to: tmp/notvalid-$FILENAME"
vcounter=$(cat $CURRENT_PATH/tmp/valid-$FILENAME | sort -u | wc -l )
fcounter=$(cat $CURRENT_PATH/tmp/notvalid-$FILENAME | sort -u | wc -l )
orgcounter=$(cat $TARGET | sort -u | wc -l )
echo -e "$RED TOTAL DOMAINS : ${orgcounter} , ALIVE : ${vcounter} , DOWN : ${fcounter} $RESET"
echo -e "$BLUE + -- ----------------------------=[Done!]=----------------------------------- -- +$RESET"