@echo off
setlocal EnableDelayedExpansion
title Myximus Shield v2.0 — Installing Your Private Security
color 0A
echo.
echo                    S H I E L D   v2.0
echo             Your Private Security — Built By You
echo  ══════════════════════════════════════════════════════════════
echo.
net session >nul 2>&1
if %errorLevel% neq 0 (
    echo  [!] Right-click and Run as administrator
    pause
    exit /b 1
)
echo  [OK] Administrator privileges confirmed
echo.
echo  [1/9] Creating directories...
if not exist "C:\Myximus\Shield" mkdir "C:\Myximus\Shield"
if not exist "C:\Myximus\VPN" mkdir "C:\Myximus\VPN"
echo  [OK] Done
echo.
echo  [2/9] Writing VPN config...
(
echo [Interface]
echo PrivateKey = QOBrImHDWHBjuI0hlU+fy+SQiQTkGrQ1IPjRnpcbw0g=
echo Address = 10.8.0.3/24
echo DNS = 142.93.196.152
echo.
echo [Peer]
echo PublicKey = yHayrr51JEq03IIGlfZoKiiEekz1Ryj4DVC9GrpZLhM=
echo PresharedKey = GH6FBSBCcx8ujIcCNloNQFqhhlMEKge3DRD9PGY+9Mk=
echo Endpoint = 142.93.196.152:51820
echo AllowedIPs = 0.0.0.0/0
echo PersistentKeepalive = 25
) > "C:\Myximus\VPN\myximus.conf"
echo  [OK] Done
echo.
echo  [3/9] Downloading WireGuard...
curl -L -o "C:\Myximus\VPN\wg-setup.exe" "https://download.wireguard.com/windows-client/wireguard-installer.exe"
echo  [OK] Done
echo.
echo  [4/9] Installing WireGuard...
start /wait "" "C:\Myximus\VPN\wg-setup.exe" /S
timeout /t 10 /nobreak >nul
echo  [OK] Done
echo.
echo  [5/9] Connecting to Myximus VPN...
"C:\Program Files\WireGuard\wireguard.exe" /installtunnelservice "C:\Myximus\VPN\myximus.conf" >nul 2>&1
echo  [OK] Done
echo.
echo  [6/9] Removing McAfee...
for %%s in (mcshield mfefire mfevtp "McAfee WebAdvisor" ModuleCoreService) do sc stop "%%s" >nul 2>&1
for %%s in (mcshield mfefire mfevtp "McAfee WebAdvisor" ModuleCoreService) do sc delete "%%s" >nul 2>&1
rd /s /q "C:\Program Files\McAfee" >nul 2>&1
rd /s /q "C:\ProgramData\McAfee" >nul 2>&1
echo  [OK] Done
echo.
echo  [7/9] Installing Shield monitor...
echo @echo off > "C:\Myximus\Shield\shield_monitor.bat"
echo title Myximus Shield - Active >> "C:\Myximus\Shield\shield_monitor.bat"
echo :loop >> "C:\Myximus\Shield\shield_monitor.bat"
echo cls >> "C:\Myximus\Shield\shield_monitor.bat"
echo echo MYXIMUS SHIELD - ACTIVE PROTECTION >> "C:\Myximus\Shield\shield_monitor.bat"
echo echo DNS: 142.93.196.152 Pi-hole 2.1M domains blocked >> "C:\Myximus\Shield\shield_monitor.bat"
echo echo. >> "C:\Myximus\Shield\shield_monitor.bat"
echo netstat -n ^| findstr ESTABLISHED >> "C:\Myximus\Shield\shield_monitor.bat"
echo timeout /t 30 /nobreak ^>nul >> "C:\Myximus\Shield\shield_monitor.bat"
echo goto loop >> "C:\Myximus\Shield\shield_monitor.bat"
echo  [OK] Done
echo.
echo  [8/9] Creating desktop shortcut...
echo Set oWS = WScript.CreateObject("WScript.Shell") > "%TEMP%\sc.vbs"
echo sLinkFile = oWS.SpecialFolders("Desktop") ^& "\Myximus Shield.lnk" >> "%TEMP%\sc.vbs"
echo Set oLink = oWS.CreateShortcut(sLinkFile) >> "%TEMP%\sc.vbs"
echo oLink.TargetPath = "C:\Myximus\Shield\shield_monitor.bat" >> "%TEMP%\sc.vbs"
echo oLink.Save >> "%TEMP%\sc.vbs"
cscript //nologo "%TEMP%\sc.vbs" >nul 2>&1
echo  [OK] Done
echo.
echo  [9/9] Setting auto-start...
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run" /v "MyximusShield" /t REG_SZ /d "C:\Myximus\Shield\shield_monitor.bat" /f >nul 2>&1
echo  [OK] Done
echo.
echo  ══════════════════════════════════════════════════════════════
echo   MYXIMUS SHIELD v2.0 COMPLETE
echo   VPN + DNS + McAfee Removed + Monitor Active
echo   Go to myximus.com and run scanner to verify
echo  ══════════════════════════════════════════════════════════════
pause
