-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·33 lines (27 loc) · 952 Bytes
/
Copy pathinstall.sh
File metadata and controls
executable file
·33 lines (27 loc) · 952 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
33
#!/bin/bash
echo "[+] Installing PacketMiner dependencies..."
# Install system dependencies (Wireshark CLI tools)
if ! command -v editcap &> /dev/null; then
echo "[+] Installing Wireshark CLI tools..."
sudo apt update && sudo apt install -y wireshark
else
echo "[✓] editcap found, skipping installation."
fi
# Create a virtual environment in the project root
if [ -f "venv/bin/activate" ]; then
echo "[✓] Virtual environment found. Activating..."
source venv/bin/activate
else
echo "[!] Virtual environment not found. Creating one..."
python3 -m venv venv
source venv/bin/activate
fi
# Ensure requirements.txt exists
if [ ! -f "requirements.txt" ]; then
echo "[!] requirements.txt not found! Creating one..."
echo "scapy" > requirements.txt
fi
# Install Python dependencies
pip install --upgrade pip
pip install -r requirements.txt
echo "[+] Installation complete! Run 'packetminer' to start the tool."