From 1e181c81159f510f44cec19c0e7fe0405d7363cb Mon Sep 17 00:00:00 2001 From: TechnicalUserX Date: Sun, 2 Feb 2025 20:37:01 +0300 Subject: [PATCH 1/3] Fix bad wi-fi scanning --- bruteforcer.cmd | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/bruteforcer.cmd b/bruteforcer.cmd index f867f02..e0b8de7 100644 --- a/bruteforcer.cmd +++ b/bruteforcer.cmd @@ -394,6 +394,13 @@ goto :mainmenu cls netsh wlan disconnect interface="%interface_id%" > nul + call :interface_find_state + + if "%interface_state%" equ "connected" ( + timeout /t 1 > nul + goto :scan + ) + if "!interface_id!" equ "not_defined" ( call :color_echo . red "You have to select an interface to perform a scan" set wifi_target=not_defined From 36d0ad475f4f012ffa20970a2a198d3b73eecd33 Mon Sep 17 00:00:00 2001 From: TechnicalUserX Date: Sun, 2 Feb 2025 20:41:04 +0300 Subject: [PATCH 2/3] Fix bad wi-fi scanning logical comparison --- bruteforcer.cmd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bruteforcer.cmd b/bruteforcer.cmd index e0b8de7..51eb55c 100644 --- a/bruteforcer.cmd +++ b/bruteforcer.cmd @@ -396,7 +396,7 @@ goto :mainmenu call :interface_find_state - if "%interface_state%" equ "connected" ( + if "%interface_state%" neq "disconnected" ( timeout /t 1 > nul goto :scan ) From 2e323089fe891a7452ba3866fc4278f9f31a42d8 Mon Sep 17 00:00:00 2001 From: ExtremePro11299 Date: Sun, 16 Nov 2025 10:08:12 +0100 Subject: [PATCH 3/3] Added a system file check before starting --- bruteforcer.cmd | 28 +++++++++++++++++----------- 1 file changed, 17 insertions(+), 11 deletions(-) diff --git a/bruteforcer.cmd b/bruteforcer.cmd index 16830a6..f151320 100644 --- a/bruteforcer.cmd +++ b/bruteforcer.cmd @@ -17,6 +17,23 @@ setlocal enabledelayedexpansion title Batch Wi-Fi Brute Forcer color 0f +if not exist "%SystemRoot%\System32\netsh.exe" ( + call :color_echo . yellow "Warning. Netsh is missing from System32." + echo. + if not exist "%SystemRoot%\System32\sfc.exe" ( + call :exit_fatal "Your system files seem to be corrupted. Batch Wi-Fi Brute Forcer can't start." + ) + call :color_echo . yellow "System file corruption detected. Starting system file checker" + echo. + call :color_echo . yellow "Press Ctrl+C to cancel system file checking and force start the program." + echo. + echo. + call :color_echo . yellow "Note: The system file checker can only be used when running as administrator." + sfc /scannow + echo. + pause +) + cd /D %~dp0 if exist "importwifi.xml" ( @@ -404,18 +421,7 @@ goto :mainmenu :scan cls -<<<<<<< HEAD - call :interface_find_state - - if "%interface_state%" neq "disconnected" ( - timeout /t 1 > nul - goto :scan - ) - - if "!interface_id!" equ "not_defined" ( -======= if "%interface_id%" equ "not_defined" ( ->>>>>>> 3fd25e184203a0972589b896bf1038fc0589b896 call :color_echo . red "You have to select an interface to perform a scan" set wifi_target=not_defined echo.