forked from parrotassassin15/parrot-recon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall-archlinux.sh
142 lines (106 loc) · 3.7 KB
/
install-archlinux.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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
#!/bin/bash
# banner
cat << "EOF"
____ ____ _______________ / /______ ________ _________ ____
/ __ \/ __ `/ ___/ ___/ __ \/ __/ ___/ / ___/ _ \/ ___/ __ \/ __ \
/ /_/ / /_/ / / / / / /_/ / /_(__ ) / / / __/ /__/ /_/ / / / /
/ .___/\__,_/_/ /_/ \____/\__/____/ /_/ \___/\___/\____/_/ /_/
/_/
_ __ ____
(_)___ _____/ /_____ _/ / /__ _____
/ / __ \/ ___/ __/ __ `/ / / _ \/ ___/
/ / / / (__ ) /_/ /_/ / / / __/ /
/_/_/ /_/____/\__/\__,_/_/_/\___/_/
/.\
| \
/ \
// /
|/ /\__________________________________________________
/ /
/ /
\/
EOF
# sets up enviornment variables and terminal colors
red=`tput setaf 1`
green=`tput setaf 2`
white=`tput setaf 7`
working_dir=$(cd -P -- "$(dirname -- "$0")" && pwd -P)
tools_dir=$working_dir/tools/
# makes sure the user is running as root
if [ `whoami` != "root" ]
then
echo "[!] This Script Needs To Be Run As Root User"
exit 0
fi
# makes sure you have black arch installed if not it installs it
if [ -f /etc/pacman.d/blackarch-mirrorlist ]
then
echo "$green[+] You Are Good To Go No Need To Install The Black Arch Repos "
else
curl -O https://blackarch.org/strap.sh
chmod +x strap.sh
./strap.sh
fi
# starts the install of parrot recon tools and prints status
echo "$green[+] Installing Tools Required For Parrot-Recon$white"
echo "$red[+] Installing Pacman Packages For Parrot-Recon$white"
sudo pacman -S nmap hydra nikto amass dirsearch ffuf dirbuster sslyze sublist3r wpscan wafw00f -y
sudo pacman -S golang-go -y
sudo pacman -S install golang -y
sudo pacman -S lynx -y
sudo pacman -S git
echo "$red[+] Installing Golang Tools For Parrot-Recon$white"
go install -v github.com/lukasikic/subzy@latest
go mod tidy; go mod init main; go get -v github.com/projectdiscovery/nuclei/v2/cmd/nuclei
go get github.com/bndr/gotabulate
go get github.com/bndr/gotabulate
# do not fuck with this it works dont mess with it parrot i swear
echo "$red[+] Cloning Git Repos For Parrot-Recon$white"
git clone https://github.com/Dionach/CMSmap $tools_dir/CMSmap
git clone https://github.com/mlcsec/headi $tools_dir/headi
git clone https://github.com/BountyStrike/Injectus $tools_dir/Injectus
git clone https://github.com/chrispetrou/FDsploit $tools_dir/FDsploit
git clone https://github.com/0xInfection/XSRFProbe $tools_dir/XSRFProbe
git clone https://github.com/ticarpi/jwt_tool.git $tools_dir/jwt_tool
# functions to make sure the tools are in the right place for parrot recon
echo "$red[+] Running Functions To Put Tools In The Right Directory$white"
cmsmap() {
cd $tools_dir/CMSmap
sudo python3 setup.py install
}
cmsmap
headi() {
cd $tools_dir/headi/
go build main.go
sudo cp main /bin/headi
}
headi
injectus() {
cd $tools_dir/Injectus/
pip3 install -r requirements.txt
cp *.py $tools_dir
}
injectus
fdsploit() {
cd $tools_dir/FDsploit
cp fdploit.py ../
pip3 install -r requirements.txt
}
fdsploit
xsrfprobe() {
cd $tools_dir/XSRFProbe
sudo python3 setup.py install
}
xsrfprobe
jwt_tool() {
echo "$red[!] JWT is not gonna be installed"
}
jwt_tool
# read -p "Enter Password for webdav access" pass
# read -e
# needs to be set up properly
echo "$red[+] Setting up WebDAV portion"
echo "$red[!] Not Ready Yet Check Back Later"
#sudo cp webdav/wsgidav.service /etc/systemd/system/wsgidav.service
echo "$green[+] Script Done!"
echo "$green[+] You are Ready To Use Parrot-Recon!"