-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathsetup.bat
More file actions
68 lines (57 loc) · 1.83 KB
/
setup.bat
File metadata and controls
68 lines (57 loc) · 1.83 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
@echo off
REM Cobalt Strike Web Client Setup Script for Windows
echo === Cobalt Strike Web Client Setup ===
REM Check Python version
python --version >nul 2>&1
if %errorlevel% neq 0 (
echo Error: Python is not installed or not in PATH
pause
exit /b 1
)
echo Python found, continuing with setup...
REM Create virtual environment
echo Creating virtual environment...
python -m venv venv
REM Activate virtual environment
echo Activating virtual environment...
call venv\Scripts\activate.bat
REM Upgrade pip
echo Upgrading pip...
python -m pip install --upgrade pip
REM Install dependencies
echo Installing dependencies...
pip install -r requirements.txt
REM Create necessary directories
echo Creating directories...
if not exist logs mkdir logs
if not exist certs mkdir certs
REM Copy environment file
if not exist .env (
echo Creating .env file from template...
copy .env.example .env
echo Please edit .env file with your configuration
)
REM Generate self-signed certificate for development
if not exist certs\cert.pem (
echo Generating self-signed certificate for development...
REM Note: This requires OpenSSL to be installed
openssl req -x509 -newkey rsa:4096 -keyout certs\key.pem -out certs\cert.pem -days 365 -nodes -subj "/C=US/ST=State/L=City/O=Organization/CN=localhost"
)
echo.
echo === Setup Complete ===
echo.
echo Next steps:
echo 1. Edit the .env file with your Cobalt Strike server details
echo 2. Ensure your Cobalt Strike team server has REST API enabled
echo 3. Run the application:
echo python run.py
echo.
echo The application will be available at: https://127.0.0.1:5000
echo.
echo Security Notes:
echo - Change the SECRET_KEY in .env before production use
echo - Use proper SSL certificates in production
echo - Ensure firewall rules are properly configured
echo - Monitor logs for security events
echo.
pause