Page 1 of 2

Extended Basic Level 5

PostPosted: Fri Feb 20, 2009 3:35 pm
by Iauruth
Hello,

I am sure that knowledge of FreeBSD would be useful to fix this script error.
Does anyone have a good reference to learn the basics of FreeBSD and what I need to know to solve this puzzle?

Thanks.

Re: Extended Basic Level 5

PostPosted: Fri Feb 27, 2009 4:51 pm
by TheMindRapist

Re: Extended Basic Level 5

PostPosted: Sun Mar 15, 2009 12:03 pm
by dj_kat
Ok I'll try not to spoil. I managed to write this script on linux using -r instead of -E.
What i find confusing is the OK thing. is there any description why the OK thing is being done?

Edit
Should have paid more attention to what exactly the shell script does. Problem fixed

Re: Extended Basic Level 5

PostPosted: Fri Aug 28, 2009 10:33 am
by djtecha
I'm confused with this mission as I believe I fixed the script to accuratly update the php functions,but where is the passwd? Is it supposed to be in the ok file, and does this have to be done on a freeBSD box or will Ubuntu work?

~Thanks

Re: Extended Basic Level 5

PostPosted: Tue Sep 08, 2009 11:19 am
by NOOR_SyRoN
Hello,
I think i got it to work but, I'm having a problem understanding this line : "Fix the incorrect line in the shell script (and use the SAME spacing)."
does it mean that i have to submit the corrected line only ?
and what does it mean by "Same spacing" ?

regards.

EDIT:
Solved :) as I expected ....

Re: Extended Basic Level 5

PostPosted: Tue Dec 29, 2009 4:12 pm
by msbachman
I probably got lucky but I started doing research into sed as a command, having never done it before the following link may be helpful to other sed-noobs like me.

http://en.wikipedia.org/wiki/Sed

Re: Extended Basic Level 5

PostPosted: Sun Jul 18, 2010 10:37 pm
by kaoS555
The wiki site helped a lot :shock: , thanks for the link.

Re: Extended Basic Level 5

PostPosted: Sun Nov 07, 2010 2:00 pm
by iskilled
Does the answer have anything to do with this:
eval ($_GET['cmd']); ?

Because all other GET uses cmd2 and this one uses cmd.

Re: Extended Basic Level 5

PostPosted: Sun Nov 07, 2010 7:39 pm
by msbachman
iskilled wrote:Does the answer have anything to do with this:
eval ($_GET['cmd']); ?

Because all other GET uses cmd2 and this one uses cmd.


I'm just checking, but do you understand what the shell script is meant to do?

You're told to patch a line in the script (the bash script), so you know that SOMETHING is not functioning correctly there.

My 2 cents would be to test the bash script, see if it's successful in doing what it should.

Re: Extended Basic Level 5

PostPosted: Tue Nov 09, 2010 7:25 am
by iskilled
Yes, it is meant to replace the eval for safeeval in the script. That's why we use sed "s/eval/safeeval". Still I can't see any other erros in the syntax except for the fact that sed is taking an argument "-e" wich means it will do more than one command, right? Since the code is only doing 1 substituiton does the answer to this lays in the sed part of the script?