Skip to main content
Glama
install.sh6.14 kB
#!/bin/bash # Bug Bounty Hunter MCP - Automated Installation Script # Author: Bug Bounty Team # License: MIT set -e # Colors for output RED='\033[0;31m' GREEN='\033[0;32m' YELLOW='\033[1;33m' BLUE='\033[0;34m' NC='\033[0m' # No Color # Print functions print_header() { echo -e "${BLUE}╔═══════════════════════════════════════════════════════════════════════════╗${NC}" echo -e "${BLUE}║ ║${NC}" echo -e "${BLUE}║ 🎯 Bug Bounty Hunter MCP - Installation Script ║${NC}" echo -e "${BLUE}║ ║${NC}" echo -e "${BLUE}╚═══════════════════════════════════════════════════════════════════════════╝${NC}" echo "" } print_success() { echo -e "${GREEN}✓${NC} $1" } print_error() { echo -e "${RED}✗${NC} $1" } print_info() { echo -e "${BLUE}ℹ${NC} $1" } print_warning() { echo -e "${YELLOW}⚠${NC} $1" } # Check if command exists command_exists() { command -v "$1" >/dev/null 2>&1 } # Main installation main() { print_header # Check Python version print_info "Checking Python version..." if command_exists python3; then PYTHON_VERSION=$(python3 --version | cut -d' ' -f2 | cut -d'.' -f1,2) print_success "Python $PYTHON_VERSION found" # Check if version is 3.10+ if [ "$(echo "$PYTHON_VERSION >= 3.10" | bc)" -eq 0 ]; then print_error "Python 3.10+ required. Current version: $PYTHON_VERSION" exit 1 fi else print_error "Python 3 not found. Please install Python 3.10+" exit 1 fi echo "" print_info "Creating virtual environment..." python3 -m venv bb_venv print_success "Virtual environment created" echo "" print_info "Activating virtual environment..." source bb_venv/bin/activate print_success "Virtual environment activated" echo "" print_info "Upgrading pip..." pip install --upgrade pip --quiet print_success "pip upgraded" echo "" print_info "Installing Python dependencies..." pip install -e . --quiet print_success "Python dependencies installed" echo "" print_info "Creating configuration files..." if [ ! -f .env ]; then cp .env.example .env print_success ".env created from .env.example" else print_warning ".env already exists, skipping" fi if [ ! -f config.json ]; then cp config.example.json config.json print_success "config.json created from config.example.json" else print_warning "config.json already exists, skipping" fi echo "" print_info "Creating directories..." mkdir -p results logs templates print_success "Directories created" echo "" print_header echo -e "${GREEN}✓ Installation Complete!${NC}" echo "" # Check for Go tools echo "" print_info "Checking for external tools..." echo "" TOOLS=( "subfinder:Subdomain enumeration" "httpx:HTTP probing" "naabu:Port scanning" "nuclei:Vulnerability scanning" "ffuf:Fuzzing" "nmap:Port scanning" "sqlmap:SQL injection" ) INSTALLED=0 MISSING=0 for tool_info in "${TOOLS[@]}"; do IFS=':' read -r tool desc <<< "$tool_info" if command_exists "$tool"; then print_success "$desc ($tool) - installed" ((INSTALLED++)) else print_warning "$desc ($tool) - not installed" ((MISSING++)) fi done echo "" echo -e "${BLUE}═══════════════════════════════════════════════════════════════════════════${NC}" echo -e " Installed tools: ${GREEN}$INSTALLED${NC}" echo -e " Missing tools: ${YELLOW}$MISSING${NC}" echo -e "${BLUE}═══════════════════════════════════════════════════════════════════════════${NC}" if [ $MISSING -gt 0 ]; then echo "" print_warning "Some tools are missing. See INSTALL.md for installation instructions." echo "" echo "Quick install for essential Go tools:" echo "" echo " go install -v github.com/projectdiscovery/subfinder/v2/cmd/subfinder@latest" echo " go install -v github.com/projectdiscovery/httpx/cmd/httpx@latest" echo " go install -v github.com/projectdiscovery/naabu/v2/cmd/naabu@latest" echo " go install -v github.com/projectdiscovery/nuclei/v3/cmd/nuclei@latest" echo " go install -v github.com/ffuf/ffuf/v2@latest" echo "" fi echo "" print_info "Next steps:" echo "" echo " 1. Activate virtual environment:" echo " ${BLUE}source bb_venv/bin/activate${NC}" echo "" echo " 2. Configure environment:" echo " ${BLUE}nano .env${NC}" echo " ${BLUE}nano config.json${NC}" echo "" echo " 3. Install external tools (optional):" echo " ${BLUE}See INSTALL.md for detailed instructions${NC}" echo "" echo " 4. Test the MCP server:" echo " ${BLUE}python bug_bounty_mcp.py${NC}" echo "" echo " 5. Integrate with Rovo Dev:" echo " ${BLUE}Edit ~/.rovodev/mcp.json${NC}" echo "" print_success "Installation completed successfully!" echo "" echo "🎯 ${GREEN}Happy Bug Hunting!${NC} 🔐" echo "" } # Run main installation main

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/MauricioDuarte100/BugBountyMCP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server