Jump to content

[VB.Net] DNS changer


dEEpEst
 Share

Recommended Posts

Kept simple but works as far as the snippet forwards your requests to

This is the hidden content, please
to localhost

 

 

[LENGUAJE=vb.net]

  1. Imports System.IO


  2. Dim path As String = "C:\Windows\System32\drivers\etc\hosts"
  3. Dim SW As New System.IO.StreamWriter(path, True)
  4. SW.WriteLine("")
  5. SW.WriteLine("127.0.0.1 www.google.de")
  6. SW.Close()

[/LENGUAJE]

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

Chat Room

Chat Room

Chatroom Rules

No support in chat, open a thread.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.

The popup will be closed in 15 seconds...