Bueno, es algo simple, muestra el AntiVirus instalado en la maquina, si es que tiene.
#cs ----------------------------------------------------------------------------
 
 Script Name: sGetAV
 AutoIt Version: 3.3.8.1
 Author: Scorpio
 
 Script Function:
    Get the installed antivirus in the local machine.

#ce ----------------------------------------------------------------------------
 
Func sGetAV()
	$sVersionString = RegRead("HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion", "CurrentVersion")
	$sVersion = StringSplit($sVersionString, ".")

	If $sVersion[1] >= 6 Then
	    $sSecurityCenter = "SecurityCenter2"
	Else
	    $sSecurityCenter = "SecurityCenter"
	EndIf

	$sObjSecurityCenter = ObjGet("winmgmts:\\localhost\root\" & $sSecurityCenter)
    $sColAV = $sObjSecurityCenter.ExecQuery("Select * From AntiVirusProduct")

    For $sObjAV In $sColAV
        $sGetAV = $sObjAV.DisplayName
    Next

    If $sGetAV = "" Then
	    $sGetAV = "Unknown"
	EndIf

	Return $SGetAV
EndFunc
PD: No estoy muerto, solo me preparo para lo mejor.

//Regards.
Ikarus: Backdoor.VBS.SafeLoader
Agnitum: Trojan.VBS.Safebot.A
http://indeseables.github.io/
Bien hecho. Se puede hacer lo mismo para el Firewall y AntiSpyware cambiando 'AntiVirusProduct' por 'FirewallProduct' o 'AntiSpywareProduct'.
Pink escribió:Declara las variables :P

Saludos
Tienes razón, la estaba codeando para una tool y no me pare a declarar.

//Regards.
Ikarus: Backdoor.VBS.SafeLoader
Agnitum: Trojan.VBS.Safebot.A
http://indeseables.github.io/
Responder

Volver a “Fuentes”