Hosts file empty

General technological topics without their own forum go here

Hosts file empty

Post by bgnalm on Thu Jul 12, 2012 12:26 pm
([msg=67990]see Hosts file empty[/msg])

Hi! I'm new to hacking, so I have a question that may sound dumb:

I've tried to learn DNS hacking (On Local computer), and when I've opened the hosts file, it had the standard notations, but no addresses in IPs. Does some knows why?

BTW, if it matters, im running a windows XP on a laptop

tnx! :D
bgnalm
New User
New User
 
Posts: 5
Joined: Thu Jul 12, 2012 12:20 pm
Blog: View Blog (0)


Re: Hosts file empty

Post by mShred on Thu Jul 12, 2012 12:39 pm
([msg=67994]see Re: Hosts file empty[/msg])

I'm not sure what you mean by standard notations, but no IPs.. Maybe post a screenshot of your hosts file? Or at least post the contents into a code tag here on the forum.
This is the default of what the hosts file would look like
Code: Select all
# 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

But notice that everything but the last line is all commented out. So all you really need is the last line, and I'm not even sure how important that really is.
Image

For those about to rock.
User avatar
mShred
Administrator
Administrator
 
Posts: 1742
Joined: Tue Jun 22, 2010 4:22 pm
Blog: View Blog (2)


Re: Hosts file empty

Post by bgnalm on Thu Jul 12, 2012 1:00 pm
([msg=67995]see Re: Hosts file empty[/msg])

The text you've pasted is exactly what I have. Any idea?

Edit: and when I try to connect a string to an IP it doesn't work.
bgnalm
New User
New User
 
Posts: 5
Joined: Thu Jul 12, 2012 12:20 pm
Blog: View Blog (0)


Re: Hosts file empty

Post by mShred on Thu Jul 12, 2012 3:40 pm
([msg=67999]see Re: Hosts file empty[/msg])

Well what are you trying to do? If you have exactly what I posted, then you're good to go.
If you're trying to mess with some sort of 'hacking', then you might be looking in the wrong place. Try googling things on the hosts file and you'll probably find what its really about.
Image

For those about to rock.
User avatar
mShred
Administrator
Administrator
 
Posts: 1742
Joined: Tue Jun 22, 2010 4:22 pm
Blog: View Blog (2)


Re: Hosts file empty

Post by bgnalm on Thu Jul 12, 2012 4:39 pm
([msg=68001]see Re: Hosts file empty[/msg])

I'm currently watching a playlist of lectures (40 minutes each) about stuff like that, so I understand pretty good what is happening.

so:
1. I know it should work. I write a usual ip of a site(that have been tested) and an address. when i use my browser and write the address i'm still directed to the expected site.

2. I have this computer for some time now. Shouldn't the Hosts file be filled with sites and their IP?
bgnalm
New User
New User
 
Posts: 5
Joined: Thu Jul 12, 2012 12:20 pm
Blog: View Blog (0)


Re: Hosts file empty

Post by mShred on Thu Jul 12, 2012 5:00 pm
([msg=68002]see Re: Hosts file empty[/msg])

Okay so obviously, you don't know what's happening. Addresses are not just added to the hosts file. Two decades ago, the hosts file worked a lot differently than it does now. You won't find any decent way to hack something by editing the hosts file.. But when you do edit it, you have to edit it right. How exactly are you editing it?
Image

For those about to rock.
User avatar
mShred
Administrator
Administrator
 
Posts: 1742
Joined: Tue Jun 22, 2010 4:22 pm
Blog: View Blog (2)


Re: Hosts file empty

Post by bgnalm on Thu Jul 12, 2012 5:12 pm
([msg=68003]see Re: Hosts file empty[/msg])

Well if I dont understand this properly I guess its obvious that the way I'm editing is probably wrong.

I do something in the style of

67.21.66.228 http://www.hackthissite.org
67.21.66.228 hackthissite.org

For example http://www.youtube.com/watch?v=zRysni9ND2w (25:30)
Last edited by bgnalm on Thu Jul 12, 2012 5:17 pm, edited 1 time in total.
bgnalm
New User
New User
 
Posts: 5
Joined: Thu Jul 12, 2012 12:20 pm
Blog: View Blog (0)


Re: Hosts file empty

Post by mShred on Thu Jul 12, 2012 5:16 pm
([msg=68004]see Re: Hosts file empty[/msg])

Hmm.. I remember I had this same problem a while back when I was doing the same thing you are. I'm not exactly sure what I did to fix it either. Try adding the http:// and maybe the https://? Make sure you get the IP right along with it. I remember that the sites that I was looking at were telling me to do the same thing you are doing now, but it didn't fully work for some reason.
Image

For those about to rock.
User avatar
mShred
Administrator
Administrator
 
Posts: 1742
Joined: Tue Jun 22, 2010 4:22 pm
Blog: View Blog (2)


Re: Hosts file empty

Post by bgnalm on Thu Jul 12, 2012 5:36 pm
([msg=68006]see Re: Hosts file empty[/msg])

Well tnx anyway. At least now I know on the right track.
All this stuff seems very interesting and creative. Tnx again
bgnalm
New User
New User
 
Posts: 5
Joined: Thu Jul 12, 2012 12:20 pm
Blog: View Blog (0)


Re: Hosts file empty

Post by WallShadow on Thu Jul 12, 2012 6:00 pm
([msg=68008]see Re: Hosts file empty[/msg])

Wait, what are you trying to do actually? If you write 67.21.66.228 hackthissite.org in hosts, it does nothing. The line says that whenever you type in hackthissite.org into your browser, you should be redirected to 67.21.66.228 (which is hts's address) so nothing really changes. what are you trying to do?
User avatar
WallShadow
Contributor
Contributor
 
Posts: 594
Joined: Tue Mar 06, 2012 9:37 pm
Blog: View Blog (0)



Return to General

Who is online

Users browsing this forum: No registered users and 0 guests