-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.sh
More file actions
56 lines (40 loc) · 1.48 KB
/
install.sh
File metadata and controls
56 lines (40 loc) · 1.48 KB
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
#!/bin/bash
# Check for Windows
if [ -n "$WINDIR" ]; then
echo "[!] This script is not supported on Windows."
echo " Please install the dependencies manually by running:"
echo " pip install -r requirements.txt"
exit 1
fi
# Check for Arch Linux
if [ -f /etc/arch-release ]; then
echo "[*] Detected Arch Linux. Using pacman to install dependencies."
echo "[*] Updating package manager..."
sudo pacman -Syu --noconfirm
echo "[*] Installing nmap..."
sudo pacman -S --noconfirm nmap
echo "[*] Installing exploitdb..."
sudo pacman -S --noconfirm exploitdb
echo "[*] Installing zap..."
sudo pacman -S --noconfirm zaproxy
>>>>>>> Stashed changes
echo "[*] Installing Python dependencies..."
pip install --break-system-packages -r requirements.txt
# Check for Debian/Ubuntu
elif [ -f /etc/debian_version ]; then
echo "[*] Detected Debian/Ubuntu. Using apt-get to install dependencies."
echo "[*] Updating package manager..."
sudo apt-get update
echo "[*] Installing nmap..."
sudo apt-get install -y nmap
echo "[*] Installing exploitdb..."
sudo apt-get install -y exploitdb
echo "[*] Installing Python dependencies..."
pip install -r requirements.txt
else
echo "[!] Unsupported operating system. Please install the dependencies manually."
exit 1
fi
echo "[*] Making the scanner executable..."
chmod +x advexploit.py
echo "[*] Installation complete. You can now run the scanner with ./advexploit.py"