forked from whit3rabbit0/project_astro
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.sh
More file actions
executable file
·49 lines (39 loc) · 1.27 KB
/
Copy pathsetup.sh
File metadata and controls
executable file
·49 lines (39 loc) · 1.27 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
#!/bin/bash
# Setup script for Kali Linux MCP Server
set -e
echo "Setting up Kali Linux MCP Server..."
# Check if Python 3.8+ is installed
PYTHON_VERSION=$(python3 --version | cut -d " " -f 2)
PYTHON_MAJOR=$(echo $PYTHON_VERSION | cut -d. -f1)
PYTHON_MINOR=$(echo $PYTHON_VERSION | cut -d. -f2)
if [ "$PYTHON_MAJOR" -lt 3 ] || ([ "$PYTHON_MAJOR" -eq 3 ] && [ "$PYTHON_MINOR" -lt 8 ]); then
echo "Error: Python 3.8 or higher is required"
echo "Current version: $PYTHON_VERSION"
exit 1
fi
echo "Python version $PYTHON_VERSION detected"
# Create virtual environment
echo "Creating virtual environment..."
python3 -m venv venv
# Activate virtual environment
echo "Activating virtual environment..."
source venv/bin/activate
# Install dependencies
echo "Installing dependencies..."
pip install --upgrade pip
pip install -r requirements.txt
echo "Making scripts executable..."
chmod +x mcp_server.py kali_api_server.py run.py
echo "Setup complete!"
echo ""
echo "To run the servers, use:"
echo " ./run.py"
echo ""
echo "For more options:"
echo " ./run.py --help"
echo ""
echo "To start Claude for Desktop with the MCP server:"
echo " 1. Open Claude for Desktop"
echo " 2. Configure it to use the MCP server at http://localhost:8080"
echo " 3. Start a new conversation"
echo ""