Understanding Source?

loltac
11 years ago

0

I am going to ‘refer’ to Level 4 of the Main section, however I do not want answers or hints!
I find it difficult to get my head around where to find the documents that are made to contain the passwords? Do I have to load these documents up as a URL, or are they saved in the source code somewhere, but I can’t see them?
I know that’s not the best worded, but hopefully you’ll undertstand it!

8replies
4voices
223views
*********** [ADIGA]
11 years ago

0

let me put it that way … the username and the password are stored in a file and not in the source code, now the script has 1 out of 2 options to know where the file at.
1- have the file name and location in the script it self.
2- recieve the file name and location through the form with the username and the password.

now …
first thing to do is to check the source and look for the form ….
if you do not know what a form is go learn some html.
if you find something in the form that might indecate a file … try opening that in your browser.
if you found that thing yet you did not know how to open it in your browser … go learn some html and about relative and absolute paths in html and css.

once finished reading and understod what this is all about … the level is easy to solve.

but read and learn, the aim is to get you to learn something and not gaining points.

loltac
11 years ago

0

I think I’ve started forms, I’m moving onto CSS on CodeAcademy… but the form is $document. or something, right? Hmmm…. time to learn about paths :) Oh, i know, I was seeing how much I knew, and so far its little! It’s just givien me something to compare against, points don’t mean much to me… Thanks for your reply!

[deleted user]
11 years ago | edited 11 years ago

0

loltac,

The form would look something like this.

<form method="POST" action="filename.php"> HTML CODE HTML CODE HTML CODE HTML CODE </form>

Check this website to know more about forms http://www.w3schools.com/tags/tag_form.asp

loltac
11 years ago

0

Man, i must be thinking of the javascript levels then?

Cyan Wind [freewind1012]
11 years ago | edited 11 years ago

0

@loltac: Don’t move to the JavaScript levels too soon. Stay right here and learn more about HTML. It is the basic of the basics. The score is not important for you, right? :p

The source of a page is built from another pages. Normally, when you view the source code (as an end-user), you will also have to load JS, CSS (which is not visible in source code, but accessible) and HTML (which is visible, from another pages). The main point of this level is “A page is built from many files. At least, make sure your secret data is far away from visible/accessible parts.”

loltac
11 years ago

0

Its not, its just i’ve learnt some javascript :P


0

@loltac: Ok then. Goodluck to you in JavaScript levels. :p

loltac
11 years ago

0

Got the first one okay ;) second one maths part, i’ll get to after completing the basic’s…

You must be logged in to reply to this discussion. Login
1 of 9

This site only uses cookies that are essential for the functionality of this website. Cookies are not used for tracking or marketing purposes.

By using our site, you acknowledge that you have read and understand our Privacy Policy, and Terms of Service.

Dismiss