-
Notifications
You must be signed in to change notification settings - Fork 0
/
info.sh
73 lines (66 loc) · 1017 Bytes
/
info.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
printf " Automatically Check dependencies and Install "
a1=("whois" "sublist3r" "dnsenum" "whatweb")
i=0
while [ $i -lt 5 ]
do
if ! which ${a1[$i]} > /dev/null; then
sudo apt install ${a1[$i]} >/dev/null 2>&1
fi
i=`expr $i + 1`
done
clear
hello ()
{
printf " Enter the website or ip address to gather information : \t "
read ip
if [ "$ip" = "" ]
then
echo " Please input ip or website "
fi
}
while [ true ]
do
printf " \t\t\t Information Gathering Techniques\n\n\n1 Whois\n2 Whatweb\n3 Find Subdomain\n4 Dns Information\n5 Exit\n6 Clear "
printf "\n Enter the choice \t "
read ch
case "$ch" in
"1")
hello
if [ "$ip" != "" ]
then
whois $ip | more
fi
;;
"2")
hello
if [ "$ip" != "" ]
then
whatweb -v $ip | more
fi
;;
"3")
hello
if [ "$ip" != "" ]
then
sublist3r -d $ip
fi
;;
"4")
hello
if [ "$ip" != "" ]
then
dnsenum $ip
fi
;;
"5")
exit
;;
*)
printf " Invalid Choice"
read -t 1000
;;
"6")
clear
;;
esac
done