Fun with coworkers 1: URL Mayhem

September 22nd, 2006

cnn.jpg

Hack:
Messing with the hosts file

Why:
Give your coworker hours of confusion, and (if you are lucky) confuse the tech support guy too.

Requirements:
Windows OS, Internet Explorer as browser (may not work in Firefox/etc)

What:
Windows Hosts file specifies where URL’s will take you - using it you can bypass your dns server..

In English, please
You can redirect yahoo.com visitors to hotmail, or somewhere worse*. Not just Yahoo but any site really.

How

  1. Open the windows Hosts file, using notepad: In windows XP installations, it is usually at C:\WINDOWS\system32\drivers\etc\HOSTS
    (Open that file using notepad). e.g click START, then RUN, and type
    NOTEPAD C:\WINDOWS\system32\drivers\etc\HOSTS and press enter
  2. The host file contains IP addresses followed by URL’s. You must know the destination IP of the site you want to redirect TO. For example, lets say you want to redirect all visitors to NBC.COM to CNN.com (64.236.16.84 is cnn.com), you might type something like:
    64.236.16.84                 http://www.nbc.com/ 
  3. Save the file
  4. Voila! Coworker types nbc.com, and ends up at CNN.com! Try this to send yahoo users to hotmail, hotmail users to google and so on.
  5. To reverse the process, re-open the file and remove the edits you made, and save.

TIP 1: To find the IP of a website, you can try going to dos (click run, type CMD) and typing tracert sitename.com
TIP 2: To ‘kill’ a site, put the IP to 127.0.0.1 (Localhost)

Bonus: This method can be used to block annoying ad sites/popup sites you don’t like, quickly and easily (point them to localhost).

Disclaimer: *Above info for informational purposes only. Please do not irritate your cow-orkers, unless you are really bored (and have a good insurance policy). I will not be held responsible for any damage you suffer from following this or other pointless pranks. Please remember to re-edit the hosts file at end of day and REMOVE any changes you made.

Entry Filed under: Hacks


No Comments yet Add your own

  • 1. the1truecoolguy  |  September 23rd, 2006 at 8:47 am

    Ha ha…great! I remember doing this back in the day to some of my friends! Let’s just hope that people who aren’t too “tech savvy” don’t mess up their work computers!! ;)

  • 2. admin  |  September 23rd, 2006 at 11:58 am

    Good point.. Guys, if you are doing this, remember, don’t do it unless you know what you are doing and please remember to remove any changes you make, especially if it’s someone elses PC!

    On that subject, does anyone have any PC or other related pranks they remember playing on coworkers?

  • 3. admin  |  September 23rd, 2006 at 12:10 pm

    …I do remember this other prank which involved stealing mouse balls.. Nothing quite like turning up at work Monday morning and discover a ball-less mouse… besides it’s kind of hard to explain to tech support..

Leave a Comment

hidden

Trackback this post  |  Subscribe to the comments via RSS Feed


Popular Posts

OMG! Ponies!

Most Recent Posts

Recent Comments

Categories

Feeds

Calendar

June 2013
M T W T F S S
« Nov    
 12
3456789
10111213141516
17181920212223
24252627282930

Links

Valid XHTML 1.0 Strict