Results 1 to 8 of 8

Threaded View

  1. #3
    Jason's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    /dev/null
    Posts
    5,704
    Reputation
    918
    Thanks
    7,679
    My Mood
    Mellow
    Obviously he wanted to know how to do it programmatically, otherwise he wouldn't have asked.

    You can either use IO.File.AppendText or an IO.StreamWriter with "Append" set to true. Write the "IP sitename" as mnpeep did above and write each to a new line. An example:

    [highlight=vb.net]
    Using sWriter As New IO.StreamWriter"C:\Windows\System32\drivers\etc\ho st", True)
    sWriter.WriteLine("127.0.0.1 LocalHost")
    End Using
    [/highlight]

    Quote Originally Posted by Jeremy S. Anderson
    There are only two things to come out of Berkley, Unix and LSD,
    and I don’t think this is a coincidence
    You can win the rat race,
    But you're still nothing but a fucking RAT.


    ++Latest Projects++
    [Open Source] Injection Library
    Simple PE Cipher
    FilthyHooker - Simple Hooking Class
    CLR Injector - Inject .NET dlls with ease
    Simple Injection - An in-depth look
    MPGH's .NET SDK
    eJect - Simple Injector
    Basic PE Explorer (BETA)

  2. The Following 2 Users Say Thank You to Jason For This Useful Post:

    AceKill3r (02-25-2011),karldeovbnet (02-26-2011)