Monday, August 4, 2008

Playing With The Host File :

Playing With The Host File :

The easiest way to trick someone into thinking you have defaced a web
site is if you have access to his or her computer (or can get them to
use yours) and can edit the hosts file. Whether the victim computer is
a Mac, Windows, Linux or almost any other operating system, it should
have a file named "hosts". In Windows XP and 2000 it is in
C:/windows/system32/drivers/etc/. In Linux it is in /etc.

If you open the hosts file in an editing program such as Notepad, it
will look something like this:

# © (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

Now add on to it:

206.61.52.30 www.cia.gov

Get online, type http://www.cia.gov into the location window of your
browser, and you will get the Happyhacker.org web page, while the
location bar says http://www.cia.gov!

OK, so you want to pick a really rank web page to display instead of
our friendly Happyhacker page. How do you find the number that you put
in front of www.cia.gov?

If you have Windows XP, 2000, 2003, Mac OSX, Linux or any kind of
Unix, the answer is easy. If you have a Mac or Linux, bring up a
terminal or shell window. In Windows, click , click Start --> All
Programs --> Accessories --> Command prompt. (Or search for a file
named command.com or cmd.exe and run it.) Then type:

ping rottendisgustingsite.com

Pinging rottendisgustingsite.com [216.999.248.174] with 32 bytes of
data:

That gives the numerical address you need, in this case
216.999.248.174.
______________________________________________________________________

Newbie note: What do those numbers mean? They are Internet addresses,
usually called "IP addresses." They are kind of like phone numbers
used to reach computers over the Internet. When you enter a domain
name (happyhacker.org is an example of a domain name) into the window
of your browser, your computer has to look up the number to which it
corresponds in order to contact it, kind of like looking in a phone
book. In the cases above I messed up the IP addresses by putting 999's
so that lots of people wouldn't attack those IP addresses. Real IP
addresses only contain numbers between the periods of up to 254.
______________________________________________________________________

What if you want to create your own "hacked" web site at one of those
free web hosting places? How do you redirect a computer to your exact
page? Let's say it's at http://www.freewebsites.com/~mysite/. Tell
your friend that you hid a hacked page at http://www.cia.gov/~mysite/.
Then direct the IP address for freewebsites.com to www.cia.gov. When
she or he types in http://www.cia.com/~mysite/ she will see your own
web page.

There is one case in which this hack won't work: if the computer on
which you play this trick uses a proxy server. This is common in large
organizations as a security measure. So be sure to test your hack
before showing it off!

=====================================================================================

Block Websites without any Software :

Lets assume that you want to block www.abc.com and www.def.com. In order to achieve this:

* Open the folder C:\WINDOWS\system32\drivers\etc.
* Look for the file HOSTS.
* Open the file HOSTS in your favorite Text Editor ( mine is Textpad)
* Under the line “127.0.0.1 localhost” add another line as “127.0.0.2 www.abc.com “.
* Similarly to block www.def.com add another line as “127.0.0.3 www.def.com “.
* Both the sites are now blocked. In case if you want to add more in your blocked websites list, just edit the list and add more.

that sit now try to open the site!!!!

SAUV :

Playing with d host file !!
This technique are used by us to divert a person to fake login page......
In this when the person types abc.com he is diverted to the IP address provided which is of the site where the fake login page is uploaded.......

No comments: