-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
45 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |