-
Notifications
You must be signed in to change notification settings - Fork 1
/
trishul.sh
executable file
·101 lines (86 loc) · 3.27 KB
/
trishul.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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
#!/bin/bash
bold="\e[1m"
red="\e[1;31m"
green="\e[32m"
blue="\e[34m"
cyan="\e[0;36m"
end="\e[0m"
gpath=~/go/bin/
dir=~/Trishul/scripts
logo(){
echo -e '\e[0;36m /### / / ### ';
echo -e '\e[0;36m / ############/ # #/ ### ';
echo -e '\e[0;36m/ ######### ### ## ## ';
echo -e '\e[0;36m# / # # ## ## ';
echo -e '\e[0;36m ## / ## ## ## ';
echo -e '\e[0;36m / ### ### /### ### /### ## /## ## #### ## ';
echo -e '\e[0;36m ## ## ###/ #### / ### / #### / ## / ### ## ### / ## ';
echo -e '\e[0;36m ## ## ## ###/ ## ## ###/ ##/ ### ## ###/ ## ';
echo -e '\e[0;36m ## ## ## ## #### ## ## ## ## ## ';
echo -e '\e[0;36m ## ## ## ## ### ## ## ## ## ## ';
echo -e '\e[0;36m ## ## ## ## ### ## ## ## ## ## ';
echo -e '\e[0;36m ## # / ## ## ### ## ## ## ## ## ';
echo -e '\e[0;36m ### / ## ## /### ## ## ## ## /# ## ';
echo -e '\e[0;36m ######/ ### ### / / #### / ## ## ######/ ## ### /';
echo -e '\e[0;36m ### ### ##/ ###/ ## ## ##### ## ##/ ';
echo -e '\e[0;36m / ';
echo -e '\e[0;36m / ';
echo -e '\e[0;36m / ';
echo -e '\e[0;36m / ';
echo -e '\e[91m Automated with <3 by Hitesh Patra (0xdeviner)\e[0m';
}
logo
help(){
echo "
Usage: ./trishul.sh [options] -t target.txt -L
Options:
-h Display this help message.
-L Runs large scope scan.
-M Runs medium scope scan.
-S Runs small scope scan.
Target:
-t Specify the domains list.
Example:
./trishul.sh -t targets.txt -L
./trishul.sh -t small.txt -S
"
}
if [[ "$*" != *"-t"* ]]
then
help
exit
fi
large(){
echo -e "${red}${bold} \n[+]${end} ${cyan}Starting large scope scan on${red}${bold}$t${end} ${cyan}...!!${end}"
$dir/large.sh $target
echo -e "${blue}${bold} \n[+]${end} ${green} Large Scope scan Completed...!!${end}"
}
medium(){
echo -e "${red}${bold} \n[+]${end} ${cyan}Starting medium scope scan on ${red}${bold}$t${end} ${cyan}...!!${end}"
$dir/medium.sh $target
echo -e "${blue}${bold} \n[+]${end} ${green} Medium Scope scan Completed...!!${end}"
}
small(){
echo -e "${red}${bold} \n[+]${end} ${cyan}Starting small scope scan on ${red}${bold}$t${end} ${cyan}...!!${end}"
$dir/small.sh $target
echo -e "${blue}${bold} \n[+]${end} ${green} Small Scope scan Completed...!!${end}"
}
while getopts ":t:eSMLh" opt; do
case ${opt} in
t ) target=$OPTARG
;;
e ) exclude=$OPTARG
;;
S ) small
;;
M ) medium
;;
L ) large
;;
h ) help
;;
: ) help
;;
esac
done
shift $((OPTIND -1))