Results 1 to 3 of 3

Thread: Accessing a shared hosted website through it's IP

Hybrid View

  1. #1
    Just burned his ISO
    Join Date
    Apr 2011
    Posts
    15

    Default Accessing a shared hosted website through it's IP

    First things first, I googled this however I didn't find anything. To be honest, I am not quite sure what my key words should be.

    What I am trying to achieve is access a site through it's IP address rather than its URL. For example - I won't open google with google.com, but rather with http://74.125.79.99 . So far so good. However, most sites have shared hosting. So that 1 IP address is hosting multiple web pages. From what I found out from google and from some personal 'tests' they mostly work on the principle:
    http://IPaddress/~user , where user is usually 8 letters/digits.

    So here is where my question stands - is it possible and if yes, how can I find the "user" so that I can access the site this way?



    Thanks in advance for any input.

    EDIT:

    Sorry for the links, didn't realise they were inappropriate.

    However, until when will all my actions be moderated? This topic took like 5 days to get approved :/ I almost forgot I posted it. And due to that delay the topic is now on page 2 (despite actually being approved yesterday/today) where almost no one will look :|
    Last edited by Unhumanje; 06-25-2011 at 09:24 AM. Reason: removed live links

  2. #2
    Just burned his ISO
    Join Date
    Jul 2011
    Posts
    3

    Default Re: Accessing a shared hosted website through it's IP

    Just to let you know

    Your questions on the /~user


    You have to guess cpanel users are created with a 5 to 6 characters


    some for example super-site-mainrawr.com would be a possibility of

    susima


    Not to mention a lot of hosting companies the privileges from people being able to use

    /~username


    as it causes a vital security risk


    You have to learn how cpanel operates in order to understand what im saying a lot better




    You just have to guess


    however there are various other ways to get such users on a server but im not going to explain that


    Hopes this helps

  3. #3
    Member shadowzero's Avatar
    Join Date
    Jun 2011
    Location
    ${HOME}
    Posts
    94

    Default Re: Accessing a shared hosted website through it's IP

    One way to do this is to have a wordlist containing usernames you'd like to try. You can get these anywhere, if you can find a list of employee email addresses you can try those. Backtrack comes with tools that can be used to get that information (see theharvester and metagoofil for example). Once you've compiled a wordlist, you can read through it and use curl against each username:

    Code:
    #!/bin/bash
    while read line; do
        curl -s -f http://123.123.123.123/~${line} > /dev/null 2>&1
        if [[ $? -eq 22 ]]; then
            echo "no such user ${line}"
        else
            echo "found user ${line}"
        fi
    done < users.txt
    curl returns error code 22 when it encounters a 404 HTTP error, which is what you'd typically get if the user's page doesn't exist.

Similar Threads

  1. Replies: 5
    Last Post: 09-10-2010, 10:42 AM
  2. Accessing other drive
    By Sejah in forum OLD BackTrack 4 General Support
    Replies: 1
    Last Post: 09-09-2009, 03:33 AM
  3. Accessing DVD drive
    By tigtrix in forum OLD BackTrack 4 General Support
    Replies: 1
    Last Post: 08-20-2009, 06:40 PM
  4. accessing files across my network
    By Ralhaz in forum OLD Newbie Area
    Replies: 8
    Last Post: 02-17-2008, 05:41 AM
  5. Find other websites hosted on a specific IP
    By KMDave in forum OLD General IT Discussion
    Replies: 3
    Last Post: 01-29-2008, 06:13 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •