Author Topic: Easily fix your hosts file  (Read 24518 times)

0 Members and 1 Guest are viewing this topic.

Offline xistenz

  • Poster
  • *
  • Posts: 632
Easily fix your hosts file
« on: April 09, 2005, 09:03:54 PM »
This is my first attempt at making any sort of functional program, so any comments/suggestions would be most welcome.

This little program will replace the current windows xp hosts file with a clean one. This could be useful for when malware has changed the windows xp hosts file.

Download here: http://venus.walagata.com/w/xistenz/hosts-original-1.10.zip

Cheers
xistenz
« Last Edit: April 09, 2005, 10:02:06 PM by xistenz »

Offline xistenz

  • Poster
  • *
  • Posts: 632
Re: Easily fix your hosts file
« Reply #1 on: April 09, 2005, 10:18:54 PM »
I have just made another one, this time it replaces the hosts files with a clean one that includes a list of dodgy websites to block, courtesy of Spybot - Search and Destroy.

Download it here: http://venus.walagata.com/w/xistenz/hosts-SSD-1.20.zip

lee16

  • Guest
Re: Easily fix your hosts file
« Reply #2 on: April 10, 2005, 11:51:00 AM »
Nicely done, well done  :)

--lee

kamulko

  • Guest
Re: Easily fix your hosts file
« Reply #3 on: April 10, 2005, 01:35:12 PM »
Dear Xistenz,
i see some file with extension "*.exe"... do i must simply run your files and they goes in my host file list automatically? Thanks for your reply. :)

Offline xistenz

  • Poster
  • *
  • Posts: 632
Re: Easily fix your hosts file
« Reply #4 on: April 10, 2005, 03:21:52 PM »
Hi all,

You need to download the appropriate zip file, then extract and run the .exe file. I find that if you run the program for the first time, and you have MS Antispyware installed, you need to have MS Antispyware allow the script to run, then run my .exe file again for it to work properly.

All the program does is overwrite your current hosts file with a clean one.
« Last Edit: April 10, 2005, 04:20:00 PM by xistenz »

Offline xistenz

  • Poster
  • *
  • Posts: 632
Re: Easily fix your hosts file
« Reply #5 on: April 10, 2005, 04:19:13 PM »
Here is a minor update to the original hosts file program.

http://venus.walagata.com/w/xistenz/hosts-original-1.20.zip

Offline Lisandro

  • Avast team
  • Certainly Bot
  • *
  • Posts: 67194
Re: Easily fix your hosts file
« Reply #6 on: April 10, 2005, 04:43:27 PM »
All the program does is overwrite your current hosts file with a clean one.

Maybe it will be better to post the 'contents' of the clean hosts file... The user won't be scared to click on 'overwrite' when asked  ;)
The best things in life are free.

Offline xistenz

  • Poster
  • *
  • Posts: 632
Re: Easily fix your hosts file
« Reply #7 on: April 10, 2005, 07:42:28 PM »
Alright, a clean hosts file looks like this:

# Copyright (c) 1993-1999 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

Offline polonus

  • Avast Überevangelist
  • Probably Bot
  • *****
  • Posts: 33897
  • malware fighter
Re: Easily fix your hosts file
« Reply #8 on: May 11, 2005, 01:05:23 PM »
Hi xistenz,

Look for my posting on hosts. Have you ever visited the English site of: richardthelionhearted. Can you comment on why he says, one has to first check the hostsfile with a text editor or binairy text scanner, like bintscan from bottom up for hosts file hijackers like bFast a.o. He also says when working with Spybot S&D advanced with a hosts file, it is best policy not to automatically update, but always to manually update, else you update the baddies as well. And what is true that running a long hosts file on XP makes the machine very slow. Like to hear your opinion, also look for my other posting on this subject.

Greetings,

POLONUS

p.S. Is "braaivlees" getting better every year in the  RSA?"
Cybersecurity is more of an attitude than anything else. Avast Evangelists.

Use NoScript, a limited user account and a virtual machine and be safe(r)!

Offline xistenz

  • Poster
  • *
  • Posts: 632
Re: Easily fix your hosts file
« Reply #9 on: May 11, 2005, 01:51:47 PM »
I'm not an expert on host files, but it is my experience that every Windows XP installation has one (feel free to correct me if I'm wrong).

On the RichardTheLionHearted site, the only thing I believe he says incorrectly is
Quote
If you don't disable the "DNS Client" service, then this will cause an extreme slowdown of your browser when you have a Hosts file installed on your system.
I have a Spybot hosts file and I have noticed no 'extreme' slowdown in my browsing.

The braaivleis is excellent as always, but we are heading into winter, so no more socialising around a braai anymore unfortunately.  :(

Offline xistenz

  • Poster
  • *
  • Posts: 632
Re: Easily fix your hosts file
« Reply #10 on: May 11, 2005, 02:02:06 PM »
Also, MS Antispyware detects changes in the hosts file and has a script blocker. Its almost the single best companion to avast! (Thats the best thing I have ever said about a M$ product  ;D)

Offline Lisandro

  • Avast team
  • Certainly Bot
  • *
  • Posts: 67194
Re: Easily fix your hosts file
« Reply #11 on: May 11, 2005, 08:18:24 PM »
Changes in the hosts file
Spybot Search & Destroy (free) has this feature too.  ;)
The best things in life are free.

Offline xistenz

  • Poster
  • *
  • Posts: 632
Re: Easily fix your hosts file
« Reply #12 on: June 01, 2005, 04:32:05 PM »

Offline xistenz

  • Poster
  • *
  • Posts: 632
Re: Easily fix your hosts file
« Reply #13 on: June 01, 2005, 04:34:43 PM »
NEW!

Hosts file from http://www.hosts-file.net/downloads.html. 30 May 2005

http://venus.walagata.com/w/xistenz/hosts-file.net-30.05.05.zip

This can block ads and questionable content. Highly recommended for keeping your computer even safer!
« Last Edit: June 01, 2005, 07:53:22 PM by xistenz »

Offline polonus

  • Avast Überevangelist
  • Probably Bot
  • *****
  • Posts: 33897
  • malware fighter
Re: Easily fix your hosts file
« Reply #14 on: June 01, 2005, 07:53:52 PM »
Hi Xistenz,

A very nice way to tweak and trim your hosts file is the program hostess . Iconnu on this forum told me how it works. I used it now to put a couple of hostsfiles together, and also added the Spybot S&D hostfile. These hosts are all automatically arranged. I noted the checksum of the hosts file, and it works great for me. You have to include Spybot S&D's but else you get a false positive  on scanning after hostess.exe has altered the hosts file. The false positive is for MySoft. Whenever you use hosts for blocking access to your machine, you have to be a aware that worms (e.g. MyTob) & various scams can alter your hostfile, place the url's of AV update sites next to 127.0.0.0, making it impossible to download  your last av definitions. Clean it out with hostess, delete, and safe as a new hostsfile. If you have not got hostess, you can rename hosts as Oldhosts.txt, work on it with notepad, delete the wrong local sites, then save as hosts, and go on,

Have a nice day in the RSA,

polonus
Cybersecurity is more of an attitude than anything else. Avast Evangelists.

Use NoScript, a limited user account and a virtual machine and be safe(r)!