[GET] A Batch Script To Edit Your HOSTS File.

 

Results 1 to 3 of 3
I see many Softwares' crack request you to edit your HOSTS file and I know ...
  1. #1
    youngguy's Avatar
    youngguy is offline Senior Member
    Join Date
    Apr 2009
    Location
    Hell
    Posts
    1,044
    Thanks
    849
    Thanked 1,504 Times in 471 Posts

    Lightbulb [GET] A Batch Script To Edit Your HOSTS File.

    I see many Softwares' crack request you to edit your HOSTS file and I know many of you guys don't know where it is and don't know how to open it right?

    I wrote a small ".bat" script to:
    1. Take Ownership of the HOSTS file (if you're on Vista & Win7)
    2. Remove attribute: system, hidden, read only of the HOSTS file
    3. Open HOSTS file with notepad ready for you to edit.

    It's a solid ".bat" script with just 4 lines of code, so it's not nessesary to provide virustotal link.

    Rapidshare:
    Code:
    http://rapidshare.com/files/314421550/Open_HOSTS.bat
    For who knows how to make a .bat file, this is the code:
    Code:
    @echo off
    takeown /f "%windir%\system32\drivers\etc\hosts" && icacls "%windir%\system32\drivers\etc\hosts" /grant administrators:F
    attrib -s -h -r %windir%\system32\drivers\etc\hosts
    %windir%\notepad.exe %windir%\system32\drivers\etc\hosts
    Instruction:
    1. If you're using Vista / Win7, just Right Click & Run as administrator
    2. XP: Run it normally

    Have Fun my BH family!
    Last edited by youngguy; 11-30-2009 at 05:48 PM.

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

    angelovepink (05-06-2010), cosmickev (01-06-2010), DuGra (12-01-2009), dw_n_cinti (01-01-2010)




  3. #2
    Beager is offline Newbies
    Join Date
    Apr 2009
    Posts
    36
    Thanks
    47
    Thanked 53 Times in 16 Posts

    Default Re: [GET] A Batch Script To Edit Your HOSTS File.

    This is a good idea, I never thought of making a .Bat file for this
    I use Host Manager right now, or HiJackThis, but this might be easier

  4. #3
    cosmickev is offline Newbies
    Join Date
    Jan 2010
    Posts
    2
    Thanks
    6
    Thanked 0 Times in 0 Posts

    Cool Re: HELP [GET] A Batch Script To Edit Your HOSTS File.

    hey young guy,

    thanks for the post. I cannot access the rapidshare link because its always congested. Is there another place to put the host file?

    This is what I get when I open the host file up.

    # Copyright (c) 1993-2006 Microsoft Corp.
    #
    # This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
    #
    # This file contains the mappings of IP addresses to host names. Each
    # entry should be kept on an individual line. The IP address should
    # be placed in the first column followed by the corresponding host name.
    # The IP address and the host name should be separated by at least one
    # space.
    #
    # Additionally, comments (such as these) may be inserted on individual
    # lines or following the machine name denoted by a '#' symbol.
    #
    # For example:
    #
    # 102.54.94.97 rhino.acme.com # source server
    # 38.25.63.10 x.acme.com # x client host

    127.0.0.1 localhost
    ::1 localhost


    How do I modify it?
    do I just delete what is there and cut and paste this below it?

    213.203.216.114
    Code:
    www.marketsamurai.com
    213.203.216.114
    Code:
    marketsamurai.com
    Or do I create a new notepad file and save it as BAT

    Please help thanks man.


    Also, do I have to install MktingSamri first in order to get host to work?
    Last edited by blackhit; 01-06-2010 at 07:07 PM.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




BlackHatWorld on Twitter BlackHatWorld on FaceBook


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98