Skip to content

Commit c22f671

Browse files
Update and rename scanner.py to Rooterhttpscan.sh
No Falsh Posative report all bug fixed
1 parent 82182f0 commit c22f671

File tree

2 files changed

+86
-194
lines changed

2 files changed

+86
-194
lines changed

Rooterhttpscan.sh

Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
#!/bin/bash
2+
# Author Shubham Rooter
3+
BLUE='\033[94m'
4+
RED='\033[91m'
5+
GREEN='\033[92m'
6+
ORANGE='\033[93m'
7+
RESET='\e[0m'
8+
TARGET="$1"
9+
CURRENT_PATH=$(pwd)
10+
11+
12+
if [ -z $TARGET ]; then
13+
14+
echo -e "$GREEN ░██████╗██╗░░██╗██╗░░░██╗██████╗░██╗░░██╗░█████╗░███╗░░░███╗  ██████╗░░█████╗░░█████╗░████████╗███████╗██████╗░"
15+
echo -e "$GREEN ██╔════╝██║░░██║██║░░░██║██╔══██╗██║░░██║██╔══██╗████╗░████║  ██╔══██╗██╔══██╗██╔══██╗╚══██╔══╝██╔════╝██╔══██╗"
16+
echo -e "$GREEN ╚█████╗░███████║██║░░░██║██████╦╝███████║███████║██╔████╔██║  ██████╔╝██║░░██║██║░░██║░░░██║░░░█████╗░░██████╔╝"
17+
echo -e "$GREEN ░╚═══██╗██╔══██║██║░░░██║██╔══██╗██╔══██║██╔══██║██║╚██╔╝██║  ██╔══██╗██║░░██║██║░░██║░░░██║░░░██╔══╝░░██╔══██╗"
18+
echo -e "$GREEN ██████╔╝██║░░██║╚██████╔╝██████╦╝██║░░██║██║░░██║██║░╚═╝░██║  ██║░░██║╚█████╔╝╚█████╔╝░░░██║░░░███████╗██║░░██║"
19+
echo -e "$GREEN ╚═════╝░╚═╝░░╚═╝░╚═════╝░╚═════╝░╚═╝░░╚═╝╚═╝░░╚═╝╚═╝░░░░░╚═╝  ╚═╝░░╚═╝░╚════╝░░╚════╝░░░░╚═╝░░░╚══════╝╚═╝░░╚═╝ "
20+
echo ""
21+
echo -e "$GREEN [+] by Shubham Rooter"
22+
echo -e "$GREEN [+]https://github.com/shubham-rooter $RESET"
23+
echo -e "$GREEN [-] Usage: Rooterhttpscan <Subdomainlist.txt>$RESET"
24+
exit
25+
fi
26+
27+
if [[ $TARGET == "--help" ]] || [[ $TARGET == "-h" ]]; then
28+
29+
echo -e "$BLUE ░██████╗██╗░░██╗██╗░░░██╗██████╗░██╗░░██╗░█████╗░███╗░░░███╗  ██████╗░░█████╗░░█████╗░████████╗███████╗██████╗░"
30+
echo -e "$BLUE ██╔════╝██║░░██║██║░░░██║██╔══██╗██║░░██║██╔══██╗████╗░████║  ██╔══██╗██╔══██╗██╔══██╗╚══██╔══╝██╔════╝██╔══██╗"
31+
echo -e "$BLUE ╚█████╗░███████║██║░░░██║██████╦╝███████║███████║██╔████╔██║  ██████╔╝██║░░██║██║░░██║░░░██║░░░█████╗░░██████╔╝"
32+
echo -e "$BLUE ░╚═══██╗██╔══██║██║░░░██║██╔══██╗██╔══██║██╔══██║██║╚██╔╝██║  ██╔══██╗██║░░██║██║░░██║░░░██║░░░██╔══╝░░██╔══██╗"
33+
echo -e "$BLUE ██████╔╝██║░░██║╚██████╔╝██████╦╝██║░░██║██║░░██║██║░╚═╝░██║  ██║░░██║╚█████╔╝╚█████╔╝░░░██║░░░███████╗██║░░██║"
34+
echo -e "$BLUE ╚═════╝░╚═╝░░╚═╝░╚═════╝░╚═════╝░╚═╝░░╚═╝╚═╝░░╚═╝╚═╝░░░░░╚═╝  ╚═╝░░╚═╝░╚════╝░░╚════╝░░░░╚═╝░░░╚══════╝╚═╝░░╚═╝ "
35+
echo ""
36+
echo -e "$GREEN [+] by Shubham Rooter"
37+
echo -e "$GREEN [+] https://github.com/shubham-rooter"
38+
echo -e "$GREEN [+] Find alive host $RESET"
39+
echo -e "$GREEN [-] Usage: Rooterhttpscan <Subdomainlist.txt>$RESET"
40+
exit
41+
fi
42+
43+
if [ ! -f $TARGET ]; then
44+
echo -e "$RED [+] --------- File Not Found -------------- [+] $RESET"
45+
echo -e "$RED [+] --------- Check - FILE PATH -------------- [+] $RESET"
46+
exit
47+
fi
48+
49+
createdir=$(mkdir -p "$CURRENT_PATH/live-dead-domains/")
50+
FILENAME=$( basename $TARGET )
51+
52+
echo -e "$ORANGE ░██████╗██╗░░██╗██╗░░░██╗██████╗░██╗░░██╗░█████╗░███╗░░░███╗  ██████╗░░█████╗░░█████╗░████████╗███████╗██████╗░"
53+
echo -e "$ORANGE ██╔════╝██║░░██║██║░░░██║██╔══██╗██║░░██║██╔══██╗████╗░████║  ██╔══██╗██╔══██╗██╔══██╗╚══██╔══╝██╔════╝██╔══██╗"
54+
echo -e "$ORANGE ╚█████╗░███████║██║░░░██║██████╦╝███████║███████║██╔████╔██║  ██████╔╝██║░░██║██║░░██║░░░██║░░░█████╗░░██████╔╝"
55+
echo -e "$ORANGE ░╚═══██╗██╔══██║██║░░░██║██╔══██╗██╔══██║██╔══██║██║╚██╔╝██║  ██╔══██╗██║░░██║██║░░██║░░░██║░░░██╔══╝░░██╔══██╗"
56+
echo -e "$ORANGE ██████╔╝██║░░██║╚██████╔╝██████╦╝██║░░██║██║░░██║██║░╚═╝░██║  ██║░░██║╚█████╔╝╚█████╔╝░░░██║░░░███████╗██║░░██║"
57+
echo -e "$ORANGE ╚═════╝░╚═╝░░╚═╝░╚═════╝░╚═════╝░╚═╝░░╚═╝╚═╝░░╚═╝╚═╝░░░░░╚═╝  ╚═╝░░╚═╝░╚════╝░░╚════╝░░░░╚═╝░░░╚══════╝╚═╝░░╚═╝ "
58+
echo -e ""
59+
echo -e "$GREEN [+] by Shubham Rooter"
60+
echo -e "$GREEN [+] https://github.com/shubham-rooter"
61+
echo -e "$GREEN [+] Find alive host $RESET"
62+
echo -e "$GREEN [-] Usage: Rooterhttpscan <Subdomainlist.txt>$RESET"
63+
echo -e "$ORANGE + ------------------------------=[Gathering Subdomains]=-------------- +$RESET"
64+
echo -e ""
65+
for foo in $(cat $TARGET)
66+
do
67+
ping -c1 -W1 $foo > /dev/null 2>&1
68+
if [[ $? -eq 0 ]];
69+
then
70+
echo -e "$GREEN [+]--- LIVE ---[+] $foo $RESET"
71+
echo -e "$foo" | tee -a $CURRENT_PATH/live-dead-domains/live-$FILENAME > /dev/null 2>&1
72+
73+
else
74+
echo -e "$RED [+]--- DEAD ---[+] $foo $RESET"
75+
76+
echo -e "$foo" | tee -a $CURRENT_PATH/live-dead-domains/dead-$FILENAME > /dev/null 2>&1
77+
fi
78+
done
79+
echo -e ""
80+
echo -e "$BLUE Working SubDomains saved to: live-dead-domains/live-$FILENAME"
81+
echo -e "$BLUE Inlive SubDomains saved to: live-dead-domains/dead-$FILENAME"
82+
vcounter=$(cat $CURRENT_PATH/live-dead-domains/live-$FILENAME | sort -u | wc -l )
83+
fcounter=$(cat $CURRENT_PATH/live-dead-domains/dead-$FILENAME | sort -u | wc -l )
84+
orgcounter=$(cat $TARGET | sort -u | wc -l )
85+
echo -e "$RED TOTAL DOMAINS : ${orgcounter} , LIVE : ${vcounter} , DOWN : ${fcounter} $RESET"
86+
echo -e "$GREEN + -- ----------------------------=[Thanks For Using]=----------------------------------- -- +$RESET"

scanner.py

Lines changed: 0 additions & 194 deletions
This file was deleted.

0 commit comments

Comments
 (0)