How to deface websites-the legal way!

In Hacking on May 28, 2006 at 1:02 pm

Here’s a little trick you could try to impress your friends and convince them that you are a super hacker! Okay, so it doesn’t actually involve defacing a real website, but tricks the computer you are using into thinking that you have.

Here’s what you do.

  • The computer you are working on, whether it is running Mac OS, Windows or Linux, should have a file located somewhere called “hosts”. On Windows ME and XP, this is usually located in C:/windows/system32/drivers/etc/, whereas in Linux it is in /etc/.
  • Open this file using your text editor (eg: Notepad). It should look something 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:
    # rhino.acme.com # source server
    # x.acme.com # x client host localhost

  • These numbers are IP addresses, which your computer uses to look up the website it corresponds to. It’s a bit like looking up a person’s number in the phone book. What this trick does is fool the computer into thinking that it is visiting examplesite.com when in fact it is displaying anothersite.com
  • Let’s assume you want your friend to think you’ve hacked Google. Add this line to the bottom of “hosts” and save the file: http://www.google.com

  • Now in your web browser, type in “www.google.com”. Instead of the familiar Google website, you will be redirected to Kunoichi.info, but the location bar will still read “www.google.com”!
  • So what if you want to use a different site instead of Kunoichi.info? It’s quite simple. Just replace the IP address with that of your chosen site. If you do not already know the IP address, you can get this by opening a shell extension on a Mac or Linux, or by running the Command Prompt on Windows and type: ping siteyouwant.com. You will get a reply from the IP address of the site you have pinged, and this is what you should use instead.

The only instance in which this trick will not work is if the computer you are working on uses a proxy server. This is a common security measure in schools and large organisations (and also for cable users, as I have found!), so be sure to check the hack works on your computer before showing your friends!

  1. Hello! Good Site! Thanks you! kcprtuvgvodos

  2. nice tips, but i want to ask about software
    what’s software that i have to use to do deface a site

    thx before

  3. Hello! Good Site! Thanks you! nloxfdpqhs

  4. Useless

  5. E’ prorogato il vigente programma sperimentale di educazione continua in medicina fino e non oltre il 31 dicembre 2007 dove vendita cialis farmacia

  6. Thanks to Oprah, Obama camp claims biggest crowd yet

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: