forked from ksharinarayanan/SSRFire
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.sh
executable file
·73 lines (67 loc) · 2.24 KB
/
setup.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
red=`tput setaf 1`
green=`tput setaf 2`
yellow=`tput setaf 3`
cyan=`tput setaf 6`
reset=`tput sgr0`
chmod +x ssrfire.sh
if [ ! -d output ]; then
mkdir output
fi
echo "${red}Note: You must have go and python 3.7 installed for the tools to work${reset}"
echo "${cyan}Installing gau... ${reset}"
mkdir tools
cd tools
git clone https://github.com/lc/gau.git
echo -e "Building the main.go file.\n${yellow}[Warning] This process fails if you don't have go installed. If you have any error messages below, try again after installing go.${reset}"
cd gau/cmd/gau
go build main.go
chmod +x main
mv main ../../main
cd ../../../..
echo -e "gau(){
tools/gau/./main \$1
}
gau_s(){
tools/gau/./main --subs \$1
}
" >> .profile
echo -e "\n"
echo "${cyan}Installing ffuf... ${reset}"
cd tools
git clone https://github.com/ffuf/ffuf.git
echo -e "Building the main.go file.\n${yellow}[Warning] This process fails if you don't have go installed. If you have any error messages below, try again after installing go.${reset}"
cd ffuf
go build main.go help.go
chmod +x main
cd ../..
echo -e "ffuf(){
tools/ffuf/./main -u \$1 -w \$2 -b \$3 -c -t 100
}" >> .profile
echo -e "\n"
echo "${cyan}Installing OpenRedireX... ${reset}"
cd tools
git clone https://github.com/devanshbatham/OpenRedireX.git
cd ..
echo -e "openredirex(){
python3 tools/OpenRedireX/openredirex.py -l \$1 -p \$2
}" >> .profile
echo -e "${green}Done${reset}\n"
echo "${cyan}Installing qsreplace...${reset}"
cd tools
git clone https://github.com/tomnomnom/qsreplace
echo -e "Building the main.go file.\n${yellow}[Warning] This process fails if you don't have go installed. If you have any error messages below, try again after installing go.${reset}"
cd qsreplace
go build main.go
cd ../..
echo -e "qsreplace(){
tools/qsreplace/./main \$1
}" >> .profile
echo -e "\n"
if [ -d tools ]; then
source .profile
echo "Your tools are installed under the tools directory"
#echo "${green}All set. Now just run SSRFire!${reset}"
else
echo "${red}Make sure that you edit the 10th line in the ssrfire.sh file. Refer the github README for more details.${reset}"
fi
echo "${yellow}If you encountered any error while installing due to reasons like go/python not installed, remove the tools directory using rm -rf tools, and run the script again."