Extended Basic Level 5

Learn how to do code review

Extended Basic Level 5

Post by Iauruth on Fri Feb 20, 2009 3:35 pm
([msg=18314]see Extended Basic Level 5[/msg])

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.
Iauruth
New User
New User
 
Posts: 1
Joined: Mon May 12, 2008 10:50 pm
Blog: View Blog (0)


Re: Extended Basic Level 5

Post by TheMindRapist on Fri Feb 27, 2009 4:51 pm
([msg=18821]see Re: Extended Basic Level 5[/msg])

Image
User avatar
TheMindRapist
Contributor
Contributor
 
Posts: 585
Joined: Mon Apr 14, 2008 4:57 pm
Blog: View Blog (0)


Re: Extended Basic Level 5

Post by dj_kat on Sun Mar 15, 2009 12:03 pm
([msg=19995]see Re: Extended Basic Level 5[/msg])

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
dj_kat
New User
New User
 
Posts: 11
Joined: Sun Aug 10, 2008 12:53 pm
Blog: View Blog (0)


Re: Extended Basic Level 5

Post by djtecha on Fri Aug 28, 2009 10:33 am
([msg=28586]see Re: Extended Basic Level 5[/msg])

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
djtecha
New User
New User
 
Posts: 5
Joined: Fri Jun 19, 2009 12:48 pm
Blog: View Blog (0)


Re: Extended Basic Level 5

Post by NOOR_SyRoN on Tue Sep 08, 2009 11:19 am
([msg=29351]see Re: Extended Basic Level 5[/msg])

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 ....
NOOR_SyRoN
New User
New User
 
Posts: 1
Joined: Sat Sep 05, 2009 4:05 pm
Blog: View Blog (0)


Re: Extended Basic Level 5

Post by msbachman on Tue Dec 29, 2009 4:12 pm
([msg=32279]see Re: Extended Basic Level 5[/msg])

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
"I'm going to get into your sister. I'm going to get my hands on your daughter."
~Gatito
User avatar
msbachman
Contributor
Contributor
 
Posts: 681
Joined: Mon Jan 12, 2009 10:22 pm
Location: In the sky lol
Blog: View Blog (0)


Re: Extended Basic Level 5

Post by kaoS555 on Sun Jul 18, 2010 10:37 pm
([msg=42097]see Re: Extended Basic Level 5[/msg])

The wiki site helped a lot :shock: , thanks for the link.
kaoS555
New User
New User
 
Posts: 13
Joined: Sat Jul 17, 2010 6:34 pm
Blog: View Blog (0)


Re: Extended Basic Level 5

Post by iskilled on Sun Nov 07, 2010 2:00 pm
([msg=48698]see Re: Extended Basic Level 5[/msg])

Does the answer have anything to do with this:
eval ($_GET['cmd']); ?

Because all other GET uses cmd2 and this one uses cmd.
iskilled
New User
New User
 
Posts: 4
Joined: Sun Nov 07, 2010 11:36 am
Blog: View Blog (0)


Re: Extended Basic Level 5

Post by msbachman on Sun Nov 07, 2010 7:39 pm
([msg=48706]see Re: Extended Basic Level 5[/msg])

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.
"I'm going to get into your sister. I'm going to get my hands on your daughter."
~Gatito
User avatar
msbachman
Contributor
Contributor
 
Posts: 681
Joined: Mon Jan 12, 2009 10:22 pm
Location: In the sky lol
Blog: View Blog (0)


Re: Extended Basic Level 5

Post by iskilled on Tue Nov 09, 2010 7:25 am
([msg=48760]see Re: Extended Basic Level 5[/msg])

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?
iskilled
New User
New User
 
Posts: 4
Joined: Sun Nov 07, 2010 11:36 am
Blog: View Blog (0)


Next

Return to Extended Basics

Who is online

Users browsing this forum: No registered users and 0 guests

cron