Y T Nuke  
Results 1 to 9 of 9
Hey -- Why would a link be formatted <a href="../../../../../../"> exactly like this in the ...
  1. #1
    44blackhatters's Avatar
    44blackhatters is offline Registered Member
    Join Date
    Jan 2008
    Posts
    52
    Reputation
    10
    Thanks
    8
    Thanked 3 Times in 2 Posts

    Default What does <a href="../../../../../"> Indicate?

    Hey --

    Why would a link be formatted <a href="../../../../../../"> exactly like this in the source code? It contains NO filenames or anything except the slashes and dots. What does it indicate? Other links on source code look normal, but then there are some with this format thrown in. Any clues would be appreciated. The page containing the link is NOT the home page, it is 3 directories above, as explained in my second post.

    PM me if necessary.

    Thanks.
    Last edited by 44blackhatters; 02-09-2010 at 05:17 PM.

  2. #2
    ndev2k is offline Junior Member
    Join Date
    Nov 2009
    Posts
    150
    Reputation
    27
    Thanks
    36
    Thanked 36 Times in 29 Posts

    Default Re: What does <a href="../../../../../../"> Indicate?

    each ../ basically goes back a directory so the link is on the same server but 6 directories behind the current page. So it is basically what is called a relative link instead of an absolute link

  3. #3
    showboytridin's Avatar
    showboytridin is offline Regular Member
    Join Date
    Sep 2009
    Location
    127.0.0.1
    Posts
    350
    Reputation
    17
    Thanks
    34
    Thanked 316 Times in 50 Posts

    Default Re: What does <a href="../../../../../"> Indicate?

    It 's a parent directory. You can have a lot of directories like /dir1/dir2/dir3/dir4/dir5 . If you are in dir5 you may need to go/call dir1. You can use ../../../../../. You will get the index.html or index,php from dir1.

  4. #4
    44blackhatters's Avatar
    44blackhatters is offline Registered Member
    Join Date
    Jan 2008
    Posts
    52
    Reputation
    10
    Thanks
    8
    Thanked 3 Times in 2 Posts

    Default Re: What does <a href="../../../../../../"> Indicate?

    Thank you, very Interesting. Ok...What if this link with the 6 slashes was located on this particular page and domain, which isn't 6 directories deep:

    htp://www.thebestwebsite.com/direct1/direct2/direct3/ (Totally made up this url)

    Since there are only 3 subdirectories on this page (I think?), how could the relative link contain 6 slashes?

    Does this mean the page link would be going forward 6 directories from the htp://www.thebestwebsite.com/direct1/direct2/direct3/...maybe landing at directory 9?

    Thanks for your help.
    Last edited by 44blackhatters; 02-09-2010 at 04:42 PM.

  5. #5
    Method's Avatar
    Method is offline Registered Member
    Join Date
    Jan 2010
    Posts
    83
    Reputation
    11
    Thanks
    17
    Thanked 11 Times in 10 Posts

    Default Re: What does <a href="../../../../../"> Indicate?

    lol maybe your accessing the root :-)

  6. #6
    44blackhatters's Avatar
    44blackhatters is offline Registered Member
    Join Date
    Jan 2008
    Posts
    52
    Reputation
    10
    Thanks
    8
    Thanked 3 Times in 2 Posts

    Default Re: What does <a href="../../../../../"> Indicate?

    Yeah, or my negative root???????

    Something is off...I think maybe this is how the page calls in a script or something.

  7. #7
    zoneweb is offline Newbies
    Join Date
    May 2009
    Posts
    40
    Reputation
    10
    Thanks
    3
    Thanked 2 Times in 2 Posts

    Default Re: What does <a href="../../../../../"> Indicate?

    That's fine for one or two pages, but if you scale that up it might get kind of messy.

  8. #8
    allenlikewo is offline Registered Member
    Join Date
    Oct 2009
    Location
    the south
    Posts
    72
    Reputation
    12
    Thanks
    4,294,967,295
    Thanked 26 Times in 15 Posts

    Default Re: What does <a href="../../../../../"> Indicate?

    probably the domain is a virutual host whose document root is a few levels deep

    so lets say the webroot is /www/

    and www.site1.com's document root is at

    /www/nichesites/niche1/site1/

    so the page you are looking at is www.site.com/dir1/dir2/dir3/file.html

    which is actually

    /www/nichesites/niche1/site1/dir1/dir2/dir3/file.html

    so in this case ../../../../../ would be referencing /www/nichesites/

    or something like that

    not the cleanest way to go about doing things but it is the explination that would make most since to me

  9. #9
    goawayplease is offline Regular Member
    Join Date
    Apr 2008
    Posts
    301
    Reputation
    14
    Thanks
    57
    Thanked 65 Times in 38 Posts

    Default Re: What does <a href="../../../../../"> Indicate?

    Yeah, this makes sense; it's some kind of directory traversal trick.

    Quote Originally Posted by allenlikewo View Post
    probably the domain is a virutual host whose document root is a few levels deep

    so lets say the webroot is /www/

    and www.site1.com's document root is at

    /www/nichesites/niche1/site1/

    so the page you are looking at is www.site.com/dir1/dir2/dir3/file.html

    which is actually

    /www/nichesites/niche1/site1/dir1/dir2/dir3/file.html

    so in this case ../../../../../ would be referencing /www/nichesites/

    or something like that

    not the cleanest way to go about doing things but it is the explination that would make most since to me

AdStract


Advertise on Black Hat World

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
  SEnukeX SEO Software
Proudly Powered by Hostwinds.com Web Hosting Click Here For Exclusive BHW Discounts!

Cheap Web Hosting


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75