Extbasic 2 - Help plz

Learn how to do code review

Extbasic 2 - Help plz

Post by Robbinski12 on Thu Apr 24, 2008 2:55 am
([msg=1161]see Extbasic 2 - Help plz[/msg])

Before I start: if I post a spoiler, it's not on purpose!

This is the function of extbasic 2:
Code: Select all
$lvl_text = file_get_contents($_POST['filename'].'.php');

No i've made a html-file to post "filename" into template.php but it doesn't give anything. This is whats in the file:
Code: Select all
<html>
<body>
<form action="http://www.hackthissite.org/missions/extbasic/template.php?lvl=2" method="post">
<input type="text" value="index" name="filename" size="30" />
<br />
<input type="submit" value="Send" />
<input type="reset" value="Reset" />
</form>
</body>
</html>

What did I forget or what mistake have I made?
[hr]Missions completed (updated 21-03-09): (Points: 1894)
Basic: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11
Realistic: 1,2, 3, 4, 5, 6, 8, 9, 12, 13
Application: 1, 2, 3, 5, 8
Javascript: 1, 2, 3, 4, 5, 6, 7
IRC: 1
Logic: 1
Extbasic: 1, 2
Stego: 3, 4, 6
Robbinski12
New User
New User
 
Posts: 32
Joined: Sun Apr 20, 2008 7:34 am
Blog: View Blog (0)


Re: Extbasic 2 - Help plz

Post by I-MrKnox-I on Thu Apr 24, 2008 5:22 am
([msg=1173]see Re: Extbasic 2 - Help plz[/msg])

I think you misunderstood the challenge.

The solution form submits the answer as the $_POST[filename] variable.

What you have to do, is submitting something as the answer to the challenge, which would show the source code of hackthissite.org/index.php IF it was entered as $_POST['filename'] to the given function.

You will meet no need for setting up sites etc for the extended basic missions. All answers are to be submitted in the answer boxes...
I-MrKnox-I
New User
New User
 
Posts: 20
Joined: Fri Apr 18, 2008 2:45 pm
Blog: View Blog (0)


Re: Extbasic 2 - Help plz

Post by Robbinski12 on Thu Apr 24, 2008 7:45 am
([msg=1180]see Re: Extbasic 2 - Help plz[/msg])

that makes it even more confusing :o
[hr]Missions completed (updated 21-03-09): (Points: 1894)
Basic: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11
Realistic: 1,2, 3, 4, 5, 6, 8, 9, 12, 13
Application: 1, 2, 3, 5, 8
Javascript: 1, 2, 3, 4, 5, 6, 7
IRC: 1
Logic: 1
Extbasic: 1, 2
Stego: 3, 4, 6
Robbinski12
New User
New User
 
Posts: 32
Joined: Sun Apr 20, 2008 7:34 am
Blog: View Blog (0)


Re: Extbasic 2 - Help plz

Post by Blacklemon67 on Thu Apr 24, 2008 4:42 pm
([msg=1219]see Re: Extbasic 2 - Help plz[/msg])

$lvl_text = file_get_contents($_POST['filename'].'.php');

so the pink part is the variable you put it?
Blacklemon67
New User
New User
 
Posts: 3
Joined: Tue Apr 22, 2008 9:16 pm
Blog: View Blog (0)


Re: Extbasic 2 - Help plz

Post by TheMindRapist on Thu Apr 24, 2008 5:14 pm
([msg=1225]see Re: Extbasic 2 - Help plz[/msg])

It gives you the code, type in the input that would get you the source of the page they ask for.
Image
User avatar
TheMindRapist
Contributor
Contributor
 
Posts: 585
Joined: Mon Apr 14, 2008 4:57 pm
Blog: View Blog (0)


Re: Extbasic 2 - Help plz

Post by novalyphe on Fri Apr 25, 2008 11:16 am
([msg=1293]see Re: Extbasic 2 - Help plz[/msg])

You're making it more complicated than it is.

Think back to basic 7.
novalyphe
Experienced User
Experienced User
 
Posts: 51
Joined: Mon Apr 14, 2008 11:15 am
Blog: View Blog (0)



Return to Extended Basics

Who is online

Users browsing this forum: No registered users and 0 guests