-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathstart.sh
More file actions
executable file
·87 lines (74 loc) · 2.34 KB
/
start.sh
File metadata and controls
executable file
·87 lines (74 loc) · 2.34 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
#!/bin/bash
# RedCalibur Quick Start Script
# Run this to start everything
cd /home/crimson/Praneesh/RedCalibur
echo "🚀 Starting RedCalibur Red Teaming Toolkit..."
echo ""
# Colors
GREEN='\033[0;32m'
RED='\033[0;31m'
YELLOW='\033[1;33m'
NC='\033[0m'
# Kill any existing processes
echo "🧹 Cleaning up old processes..."
pkill -f "uvicorn api.tools_api" 2>/dev/null
pkill -f "next dev" 2>/dev/null
sleep 2
# Start Backend
echo ""
echo "🔧 Starting Backend API..."
source redcalibur-env/bin/activate
nohup uvicorn api.tools_api:app --host 0.0.0.0 --port 8000 > /tmp/redcalibur_backend.log 2>&1 &
BACKEND_PID=$!
sleep 4
# Check backend
if curl -s http://localhost:8000/ > /dev/null 2>&1; then
echo -e "${GREEN}✅ Backend running on http://localhost:8000${NC}"
else
echo -e "${RED}❌ Backend failed. Check: tail -f /tmp/redcalibur_backend.log${NC}"
exit 1
fi
# Start Frontend
echo ""
echo "🎨 Starting Frontend..."
cd redcalibur-nextjs
nohup npm run dev > /tmp/redcalibur_frontend.log 2>&1 &
FRONTEND_PID=$!
sleep 6
# Find which port frontend is using
if lsof -i :3000 > /dev/null 2>&1; then
PORT=3000
elif lsof -i :3001 > /dev/null 2>&1; then
PORT=3001
else
echo -e "${RED}❌ Frontend failed. Check: tail -f /tmp/redcalibur_frontend.log${NC}"
exit 1
fi
echo -e "${GREEN}✅ Frontend running on http://localhost:$PORT${NC}"
echo ""
echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
echo -e "${GREEN}🎉 RedCalibur is READY!${NC}"
echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
echo ""
echo -e "📱 ${GREEN}Open: http://localhost:$PORT${NC}"
echo ""
echo "🛠️ 12 Tools Available:"
echo " • DNS Enumeration"
echo " • Subdomain Discovery"
echo " • Vulnerability Scanner"
echo " • Exploit Search"
echo " • Payload Generator"
echo " • Web Crawler"
echo " • Phishing Detection"
echo " • Report Generator"
echo " • And more..."
echo ""
echo "📊 Backend: http://localhost:8000/docs"
echo ""
echo "📝 Logs:"
echo " Backend: tail -f /tmp/redcalibur_backend.log"
echo " Frontend: tail -f /tmp/redcalibur_frontend.log"
echo ""
echo "🛑 To stop: pkill -f uvicorn && pkill -f 'next dev'"
echo ""
echo -e "${YELLOW}⚠️ For authorized security testing only!${NC}"