Login Register






Thread Rating:
  • 0 Vote(s) - 0 Average


Get Antivirusname & Firewallname filter_list
Author
Message
Get Antivirusname & Firewallname #1
Get AV and Firewall

Just a little snippet I wanted to share. You can read out Firewall and Antivirus using WMI.
(Credits to: Mr. Smith from HF)

Don't forget to import System.Management and also set a reference to this.


[Image: enira6kb.gif]

PHP Code:
Function GetAntiVirus() As String
        Dim str 
As String Nothing
        Dim searcher 
As New ManagementObjectSearcher("\\" Environment.MachineName "\root\SecurityCenter2""SELECT * FROM AntivirusProduct")
        
Dim instances As ManagementObjectCollection searcher.[Get]()
        For 
Each queryObj As ManagementObject In instances
            str 
queryObj("displayName").ToString()
        
Next
        
Return str
    End 
Function 

PHP Code:
Function GetFirewall() As String
        Dim str 
As String Nothing
        Dim searcher 
As New ManagementObjectSearcher("\\" Environment.MachineName "\root\SecurityCenter2""SELECT * FROM FirewallProduct")
        
Dim instances As ManagementObjectCollection searcher.[Get]()
        For 
Each queryObj As ManagementObject In instances
            str 
queryObj("displayName").ToString()
        
Next
        
Return str
    End 
Function 


If you liked it, please leave a thanks Smile
By Madara-Uchiha

Reply

RE: Get Antivirusname & Firewallname #2
Very nice man, thanks for the share!

Reply

RE: Get Antivirusname & Firewallname #3
No problem, its nice to use in RATs or Keyloggers or Botnets. Also good just for reading out the System Information Wink

Reply

RE: Get Antivirusname & Firewallname #4
Tip, you can use the following tags for vb.net code:
Code:
[code=vbnet][*/code] without the asterisk.
[Image: CDUAq9d.png]

Reply

RE: Get Antivirusname & Firewallname #5
It's giving me the following error

Spoiler:
[Image: u3a3.png]
"You can't send a donation to yourself."
Damn.

Reply

RE: Get Antivirusname & Firewallname #6
(08-15-2013, 04:54 AM)Bonfire Wrote: It's giving me the following error

Spoiler:
[Image: u3a3.png]

Be sure to import the correct Imports. I believe here you need to add this to the top of your code.

Code:
Imports System.Management

Reply

RE: Get Antivirusname & Firewallname #7
(08-15-2013, 05:04 AM)ViolentReality Wrote:
(08-15-2013, 04:54 AM)Bonfire Wrote: It's giving me the following error

Spoiler:
[Image: u3a3.png]

Be sure to import the correct Imports. I believe here you need to add this to the top of your code.

Code:
Imports System.Management

Referring back to the image, the correct imports are imported.

I don't really see whats wrong with the code, but it's throwing an error.
"You can't send a donation to yourself."
Damn.

Reply

RE: Get Antivirusname & Firewallname #8
Spoiler: Add Reference:

[Image: nlCeHjS.gif]


I hope this helps.

Reply

RE: Get Antivirusname & Firewallname #9
Very nice, thanks for this!
Don't you mind to look at my user-title?

[Image: w2bzKQY.png?1]


Reply







Users browsing this thread: 1 Guest(s)