From d6401dac23b1c635322f7a0fbfc60055bf330408 Mon Sep 17 00:00:00 2001 From: Arpit Pathak <119810812+Thepathakarpit@users.noreply.github.com> Date: Wed, 28 Aug 2024 22:15:05 +0530 Subject: [PATCH] Create hackingtool_windows_setup.bat Batch file to install Ubuntu using wsl in windows and giving command to be pasted on ubuntu terminal which will be there to run the hackingtool. --- hackingtool_windows_setup.bat | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 hackingtool_windows_setup.bat diff --git a/hackingtool_windows_setup.bat b/hackingtool_windows_setup.bat new file mode 100644 index 00000000..bb1b1730 --- /dev/null +++ b/hackingtool_windows_setup.bat @@ -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