From 2ea7830a21128ee95239407c4c0a7199b5c0968c Mon Sep 17 00:00:00 2001 From: NomadUmbra <219109722+NomadUmbra@users.noreply.github.com> Date: Fri, 22 May 2026 08:36:17 -0400 Subject: [PATCH] Add Windows installation support --- .gitignore | 13 +++++++++++++ GhostTR.py | 4 ++-- README.md | 17 +++++++++++++++++ run-windows.bat | 16 ++++++++++++++++ 4 files changed, 48 insertions(+), 2 deletions(-) create mode 100644 .gitignore create mode 100644 run-windows.bat diff --git a/.gitignore b/.gitignore new file mode 100644 index 00000000..bf4e1d18 --- /dev/null +++ b/.gitignore @@ -0,0 +1,13 @@ +.venv/ +__pycache__/ +*.py[cod] +.Python + +.env +.env.* + +.idea/ +.vscode/ + +Thumbs.db +Desktop.ini diff --git a/GhostTR.py b/GhostTR.py index ccc1455c..1ff2decf 100644 --- a/GhostTR.py +++ b/GhostTR.py @@ -259,7 +259,7 @@ def is_in_options(num): def option(): # BANNER TOOLS clear() - stderr.writelines(f""" + stderr.writelines(fr""" ________ __ ______ __ / ____/ /_ ____ _____/ /_ /_ __/________ ______/ /__ / / __/ __ \/ __ \/ ___/ __/_____/ / / ___/ __ `/ ___/ //_/ @@ -275,7 +275,7 @@ def option(): def run_banner(): clear() time.sleep(1) - stderr.writelines(f"""{Wh} + stderr.writelines(fr"""{Wh} .-. .' `. {Wh}-------------------------------- :g g : {Wh}| {Gr}GHOST - TRACKER - IP ADDRESS {Wh}| diff --git a/README.md b/README.md index a5f4df0f..52fe5aad 100644 --- a/README.md +++ b/README.md @@ -18,6 +18,23 @@ pkg install git pkg install python3 ``` +### Installation on Windows +Install Python 3 from python.org. During installation, enable the checkbox to add Python to PATH. + +Then run: +```powershell +git clone https://github.com/HunxByts/GhostTrack.git +cd GhostTrack +python -m venv .venv +.\.venv\Scripts\python.exe -m pip install -r requirements.txt +.\.venv\Scripts\python.exe GhostTR.py +``` + +You can also start the tool with: +```powershell +.\run-windows.bat +``` + ### Usage Tool ``` git clone https://github.com/HunxByts/GhostTrack.git diff --git a/run-windows.bat b/run-windows.bat new file mode 100644 index 00000000..f101b059 --- /dev/null +++ b/run-windows.bat @@ -0,0 +1,16 @@ +@echo off +setlocal + +cd /d "%~dp0" + +if not exist ".venv\Scripts\python.exe" ( + echo Creating Python virtual environment... + python -m venv .venv + if errorlevel 1 exit /b 1 +) + +echo Installing dependencies... +".venv\Scripts\python.exe" -m pip install -r requirements.txt +if errorlevel 1 exit /b 1 + +".venv\Scripts\python.exe" GhostTR.py