Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added functionality to run hackingtool on Windows using wsl with automated setup. #484

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions hackingtool_windows_setup.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
@echo off
setlocal enabledelayedexpansion

REM Check if WSL is installed
wsl --version >nul 2>&1
if %errorlevel% neq 0 (
echo Installing WSL...
wsl --install
echo WSL installation complete. Please restart your computer and run this script again.
exit /b
)

REM Check if Ubuntu is installed
wsl -l -v | findstr /i "Ubuntu" >nul 2>&1
if %errorlevel% neq 0 (
echo Installing Ubuntu...

REM Display instructions for the user
echo.
echo The following commands will install and run the Hackingtool in WSL:
echo.
echo " sudo apt update && sudo apt upgrade -y && sudo apt install -y git docker.io docker-compose && rm -rf hackingtool && git clone https://github.com/Z4nzu/hackingtool.git && cd hackingtool && chmod -R 755 . && sudo bash install.sh && sudo hackingtool "
echo.
echo Please copy the above command and paste (or right click) into the Ubuntu terminal. [Without quotes]
echo.

wsl --install -d Ubuntu
echo Ubuntu installation complete. Please restart your computer and run this script again.
exit /b
)

pause