probar-antivirus-powershell
🛡️ Cómo probar tu antivirus con PowerShell (archivo EICAR seguro)
Probar si tu antivirus realmente protege tu sistema puede ser complicado. Por eso los expertos en ciberseguridad utilizan el archivo de prueba EICAR.
El archivo EICAR no es un virus real, pero está diseñado para que los antivirus lo detecten como amenaza.
Script de PowerShell
$path = "C:\temp"
if (!(Test-Path $path)) {
New-Item -ItemType Directory -Path $path
}
$string = "X5O!P%@AP[4\PZX54(P^)7CC)7}`$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!`$H+H*"
for ($i=1; $i -le 50; $i++) {
Set-Content "$path\eicar_test_$i.txt" $string
}
Si el antivirus está activo, los archivos serán detectados inmediatamente.



Arif Akyüz
Bilgi Teknolojileri
Sistem Network Yöneticisi
ve Siber Güvenlik Uzmanı
[email protected]