Skip to content

Commit

Permalink
chore: Installation
Browse files Browse the repository at this point in the history
  • Loading branch information
MC874 authored Aug 27, 2022
1 parent 3b9c7b1 commit dc0e9fc
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# !/bin/bash env

echo [Installation Script]
echo
ansi='<Choose>: '
opti=("WSee" "ZGrab" "Fix OpenSSL" "Fix ZGrab")

select ch in "${opti[@]}"; do
case $ch in
"WSee")
apt install python3, python3-pip
apt install git
git clone https://github.com/MC874/wsee
cd wsee
chmod +x *
python3 -m pip install requests
echo Done!
;;
"ZGrab")
cd wsee
chmod +x *
git clone https://github.com/PalindromeLabs/zgrab2
cd zgrab2
sudo make
sudo update-alternatives /usr/bin/zgrab2 zgrab2 ./zgrab2
echo Done!
;;
"Fix OpenSSL")
cd wsee
chmod +x *
SC=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
export OPENSSL_CONF=$SC/wsee/openssl.cnf
;;
"Fix ZGrab")
sudo rm -rf /etc/resolv.conf
echo "nameserver 1.1.1.1" >> /etc/resolv.conf
echo Done!
;;
"Quit")
echo "User requested exit"
exit
;;
*) echo "invalid option $REPLY";;
esac
done

0 comments on commit dc0e9fc

Please sign in to comment.