-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup.sh
More file actions
32 lines (28 loc) · 766 Bytes
/
setup.sh
File metadata and controls
32 lines (28 loc) · 766 Bytes
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
#!/bin/bash
if [[ $(/usr/bin/id -u) -ne 0 ]]; then
echo "Not running as root"
exit
fi
clear
echo ""
echo " ================================="
echo " == WHITECAT Dependancy Checker =="
echo " == -Version 1a- =="
echo " ================================="
echo ""
echo "[~] Installing needed programs.."
echo ""
sudo apt-get update
sudo apt-get install -y wireless-tools net-tools hcxdumptool hcxtools hashcat iw grep gawk
echo ""
echo "[~] Copying binary files to /usr/bin/"
sudo rm -rf /usr/bin/whitecat
sudo cp whitecat /usr/bin/whitecat
sudo chmod +x /usr/bin/whitecat
echo ""
echo "[~] Creating dir /usr/share/WHITECAT"
if [ ! -d "/usr/share/WHITECAT" ]; then
sudo mkdir /usr/share/WHITECAT
fi
echo ""
echo "[!] All Done!"