-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.sh
executable file
·29 lines (22 loc) · 999 Bytes
/
install.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
install_docker(){
sudo apt-get update
sudo apt-get install apt-transport-https ca-certificates curl gnupg lsb-release
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
echo "deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt-get update
sudo apt-get install docker-ce docker-ce-cli containerd.io
}
docker --version 2> /dev/null
if [ $? -ne 0 ]; then
while true; do
read -p "This script requires docker to run correctly, do you want to install it? y/n" yn
case $yn in
[Yy]* ) install_docker; break;;
[Nn]* ) exit;;
* ) echo "Please answer yes or no.";;
esac
done
fi
sudo apt-get install nmap
sudo apt-get install hydra
chmod +x install_aux.sh && ./install_aux.sh