Files and Subdirectories

A place where newbies can post without (much) fear of reprisal. All mission posts should still go in the applicable forum.
Forum rules
Older HTS users: Be nice to the new people.

NEW USERS: This is NOT the place to post about missions! Refer to "Missions" category.

Files and Subdirectories

Post by ugosugo on Sat Jul 07, 2012 1:56 pm
([msg=67827]see Files and Subdirectories[/msg])

Hello I'm a newbie here and I'm looking for some help :D

I've done the Basic missions and some of the Realistic ones but I'm pretty sure I didn't understand everything too well.
I remember that in one of the basic missions you had to work with the URL to go into a certain folder. Once I did that my browser showed me a full list of the subdirectories and files that were there.

I tried to use the little things I know outside HTS (not trying to hack anybody, just curiosity) so I gave a look at my high school web site and by just looking at the HTML I found that there is actually a subfolder that has something in it.

I typed "www.myschool.com/folder/" in my URL bar and nothing but a blank page showed up. Is it because of security?
I knew there was another subfolder so I tried with "www.myschool.com/folder/subfolder/" and this time this message appeared:
Directory Listing Denied
This Virtual Directory does not allow contents to be listed.

I'm just wondering why things sometime work and sometime not, so can anyone help me out?
Thanks :D
ugosugo
New User
New User
 
Posts: 2
Joined: Thu Jul 05, 2012 8:07 am
Blog: View Blog (0)


Re: Files and Subdirectories

Post by mShred on Sat Jul 07, 2012 3:17 pm
([msg=67837]see Re: Files and Subdirectories[/msg])

The blank page may have popped up from the way that the site handles requests. But the directory listing being blocked just means they don't want that specific directory's contents to be listed. Maybe if you tried calling specific files within that directory, you could get something to open if there aren't any session restrictions.
Image

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


Re: Files and Subdirectories

Post by WallShadow on Sat Jul 07, 2012 3:20 pm
([msg=67838]see Re: Files and Subdirectories[/msg])

See, a server's directories work a lot like normal file directories on a private computer. But when a visitor wants to see a certain any certain folder, such as 'www.myschool.com/' or 'www.myschool.com/folder/' or 'www.myschool.com/folder/subfolder/' the server first looks for a few different index pages such as 'index.html' or 'index.htm' or 'index' or 'index.php' or 'default.php'. these files are executed if they are some sort of server-side scripting, or just returned if it is an html page. If the page is blank, then a blank page is returned to the user.

Look up 'www.google.com/', and then 'www.google.com/index.html', and notice that there is no difference because 'www.google.com/index.html' is what is returned to you when you enter 'www.google.com/'.

Now when the server fails to find a directory index page, that is when it looks into it's configuration file to see whether you have permission to see what is in it. If you do, it returns what ever it's configuration file says to return, whether its a hello world, or a directory listing. If you don't, you'll get an error similar to what you got.

I hope this helps.

-WallShadow <3
User avatar
WallShadow
Contributor
Contributor
 
Posts: 612
Joined: Tue Mar 06, 2012 9:37 pm
Blog: View Blog (0)



Return to NZone

Who is online

Users browsing this forum: No registered users and 0 guests