Thursday, October 30, 2008

How ToFake URL

Wanna play with your friends.Here is a cool one.Lets redirect one web site
to anotherone.Okay okay just kidding.We are not going to hack web site
and redirect it to another instead we are going to do some editing in
your computer and fake URL.Then your browser redirect the domain name to another site.
But you can play with your frineds and show your self as a great hacker.
You can do this editing in you computer and bring friends and show magics.
Or you can do this editing in your friends computer and make him fool.
Oka okay lets start the work.Lets assume there is a website call www.mysite.com
and you want to redirect www.facebook.com to it.We have to edit "host" file.
In windows you will find it in C:\windows\system32\drivers\ect,If you are
linux user try ect folder.Open "host" file with text editor.(Notepad.you  cant just double click
and open it becouse it hasn't extention.so simply drag and drop it in to notepad)
You will see some thing 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



Now we need the IP address of www.misite.com.(If you read our early article
you alredy know how to find IP address of a web site).Open command line
then type

tracert www.misite.com or
ping www.mysite.com


After you find IP address.lets assume it is 127.25.06.300(No IP address
has number grater than 255,In this case I jam the Ip address).Now add the

127.25.06.300 www.facebook.com to host file.Now it see 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
127.25.06.300 www.facebook.com


Now save changes and close the notepad.Open your browser and type
www.facebook.com in address bar.WOW you will see mysite.com instead
www.facebook.com.(Congradulations!!!!!!)