-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstart.bat
More file actions
70 lines (57 loc) · 1.56 KB
/
start.bat
File metadata and controls
70 lines (57 loc) · 1.56 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
@echo off
REM Keyspace - Windows Startup Script
REM Change to script directory
cd /d "%~dp0"
echo.
echo +-------------------------------------------+
echo ^| ^|
echo ^| K E Y S P A C E - Password Tool ^|
echo ^| ^|
echo +-------------------------------------------+
echo.
echo Advanced Password Cracking Tool v1.0
echo.
echo Starting Keyspace...
echo.
REM Check if Python is installed
python --version >nul 2>&1
if errorlevel 1 (
echo ERROR: Python is not installed or not in PATH
echo Please install Python 3.8+ from https://python.org
pause
exit /b 1
)
REM Check if virtual environment exists, create if not
if not exist venv (
echo Creating virtual environment...
python -m venv venv
if errorlevel 1 (
echo ERROR: Failed to create virtual environment
pause
exit /b 1
)
)
REM Activate virtual environment
echo Activating virtual environment...
call venv\Scripts\activate.bat
if errorlevel 1 (
echo ERROR: Failed to activate virtual environment
pause
exit /b 1
)
REM Install/update requirements
echo Installing requirements...
pip install -r requirements.txt
if errorlevel 1 (
echo ERROR: Failed to install requirements
pause
exit /b 1
)
echo.
echo Starting Keyspace GUI...
echo.
REM Start the application with API enabled
python main.py --enable-api
REM Deactivate virtual environment
deactivate
pause