refactor: remove splash screen and simplify setup scripts

This commit is contained in:
GH05TCREW
2025-12-11 20:25:01 -07:00
parent 8fb4ab6983
commit a404ca66fe
4 changed files with 54 additions and 150 deletions

View File

@@ -1,57 +1,61 @@
# GhostCrew PowerShell Setup Script
Write-Host "GhostCrew Setup" -ForegroundColor Blue
Write-Host "AI Penetration Testing" -ForegroundColor Green
Write-Host "=================================================================="
Write-Host " GHOSTCREW"
Write-Host " AI Penetration Testing"
Write-Host "=================================================================="
Write-Host ""
Write-Host "Setup"
Write-Host ""
# Check Python version
Write-Host "Checking Python version..." -ForegroundColor Yellow
Write-Host "Checking Python version..."
try {
$pythonVersion = python --version 2>&1
if ($pythonVersion -match "Python (\d+)\.(\d+)") {
$major = [int]$Matches[1]
$minor = [int]$Matches[2]
if ($major -lt 3 -or ($major -eq 3 -and $minor -lt 10)) {
Write-Host "Error: Python 3.10 or higher is required" -ForegroundColor Red
Write-Host "Error: Python 3.10 or higher is required"
exit 1
}
Write-Host "[OK] $pythonVersion" -ForegroundColor Green
Write-Host "[OK] $pythonVersion"
}
} catch {
Write-Host "Error: Python not found. Please install Python 3.10+" -ForegroundColor Red
Write-Host "Error: Python not found. Please install Python 3.10+"
exit 1
}
# Create virtual environment
Write-Host "Creating virtual environment..." -ForegroundColor Yellow
Write-Host "Creating virtual environment..."
if (-not (Test-Path "venv")) {
python -m venv venv
Write-Host "[OK] Virtual environment created" -ForegroundColor Green
Write-Host "[OK] Virtual environment created"
} else {
Write-Host "[OK] Virtual environment exists" -ForegroundColor Green
Write-Host "[OK] Virtual environment exists"
}
# Activate virtual environment
Write-Host "Activating virtual environment..." -ForegroundColor Yellow
Write-Host "Activating virtual environment..."
& .\venv\Scripts\Activate.ps1
# Upgrade pip
Write-Host "Upgrading pip..." -ForegroundColor Yellow
Write-Host "Upgrading pip..."
pip install --upgrade pip
# Install dependencies
Write-Host "Installing dependencies..." -ForegroundColor Yellow
Write-Host "Installing dependencies..."
pip install -e ".[all]"
Write-Host "[OK] Dependencies installed" -ForegroundColor Green
Write-Host "[OK] Dependencies installed"
# Install playwright browsers
Write-Host "Installing Playwright browsers..." -ForegroundColor Yellow
Write-Host "Installing Playwright browsers..."
playwright install chromium
Write-Host "[OK] Playwright browsers installed" -ForegroundColor Green
Write-Host "[OK] Playwright browsers installed"
# Create .env file if not exists
if (-not (Test-Path ".env")) {
Write-Host "Creating .env file..." -ForegroundColor Yellow
Write-Host "Creating .env file..."
@"
# GhostCrew Configuration
# Add your API keys here
@@ -71,16 +75,16 @@ GHOSTCREW_DEBUG=false
# Max Iterations
GHOSTCREW_MAX_ITERATIONS=50
"@ | Set-Content -Path ".env" -Encoding UTF8
Write-Host "[OK] .env file created" -ForegroundColor Green
Write-Host "[!] Please edit .env and add your API keys" -ForegroundColor Yellow
Write-Host "[OK] .env file created"
Write-Host "[!] Please edit .env and add your API keys"
}
# Create loot directory for reports
New-Item -ItemType Directory -Force -Path "loot" | Out-Null
Write-Host "[OK] Loot directory created" -ForegroundColor Green
Write-Host "[OK] Loot directory created"
Write-Host ""
Write-Host "Setup complete!" -ForegroundColor Green
Write-Host "Setup complete!"
Write-Host ""
Write-Host "To get started:"
Write-Host " 1. Edit .env and add your API keys"