Extbasic 1

Learn how to do code review

Re: Extbasic 1

Post by b0r15 on Wed Sep 09, 2009 11:33 am
([msg=29414]see Re: Extbasic 1[/msg])

Just finished this one too.. using my own common sense, but I didnt learn anything from it. I didnt even know I passed the mission till I tried to reinject data and it said "Youve already passed this mission,"move on" The injection caused the server to say it cant handle the request..? Thats all
Basic: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10) (11)
Realistic: (1) (2) (3) (4) (5) (7) (9) (10) (12) (13)
Application: (1) (2) (3)
Programming: (1)
Javascript: (1) (2) (3) (4) (5) (6) (7)
Extbasic: (1)
b0r15
New User
New User
 
Posts: 25
Joined: Fri Aug 21, 2009 6:56 pm
Location: port 8118->9050->exit node= Me
Blog: View Blog (0)


Re: Extbasic 1

Post by Etelerix on Sat Jan 30, 2010 5:06 pm
([msg=34145]see Re: Extbasic 1[/msg])

Chuck_Norris_RHK wrote:Examine the code.
Code: Select all
void blah(char *str) { char lol[200]; strcpy(lol, str); }

Look at 'char lol[200]' The answer is right there. (Obviously the answer is not 'char lol[200]' :P)

I'm sure this is about as helpful as someone can be without giving the answer away, but I still need a little push in the right direction. Is it a C command we enter in the box?
User avatar
Etelerix
Experienced User
Experienced User
 
Posts: 71
Joined: Sun Jul 05, 2009 2:07 pm
Blog: View Blog (0)


Re: Extbasic 1

Post by faazshift on Sat Jan 30, 2010 5:51 pm
([msg=34148]see Re: Extbasic 1[/msg])

Etelerix wrote:I'm sure this is about as helpful as someone can be without giving the answer away, but I still need a little push in the right direction. Is it a C command we enter in the box?

This is a program that asks for input, you give the input. The char array can hold 200 characters. Your goal is to crash the program. Can you figure it out now?
faazshift
Contributor
Contributor
 
Posts: 516
Joined: Wed Jun 03, 2009 3:55 pm
Location: Riverton, Utah
Blog: View Blog (0)


Re: Extbasic 1

Post by blazinazn on Mon Feb 01, 2010 7:45 pm
([msg=34262]see Re: Extbasic 1[/msg])

ok.. what...
CSRF attack blocked
N0oI3 Tul3R
blazinazn
New User
New User
 
Posts: 10
Joined: Sun Jan 31, 2010 8:12 pm
Blog: View Blog (0)


Re: Extbasic 1

Post by richfatsanta on Wed Feb 03, 2010 12:45 am
([msg=34365]see Re: Extbasic 1[/msg])

blazinazn wrote:ok.. what...
CSRF attack blocked


I managed to repeat your error if I went a little overboard on breaking the function, but it worked if I didn't do too much extra.
richfatsanta
New User
New User
 
Posts: 1
Joined: Thu Apr 24, 2008 9:57 pm
Blog: View Blog (0)


Re: Extbasic 1

Post by sanddbox on Wed Feb 03, 2010 12:50 am
([msg=34366]see Re: Extbasic 1[/msg])

richfatsanta wrote:
blazinazn wrote:ok.. what...
CSRF attack blocked


I managed to repeat your error if I went a little overboard on breaking the function, but it worked if I didn't do too much extra.

...what?
Image

HTS User Composition:
95% Male
4.98% Female
.01% Monica
.01% Goat
User avatar
sanddbox
Expert
Expert
 
Posts: 2331
Joined: Sat Jul 04, 2009 5:20 pm
Blog: View Blog (0)


Re: Extbasic 1

Post by Defience on Wed Feb 03, 2010 11:41 am
([msg=34379]see Re: Extbasic 1[/msg])

sanddbox wrote:
richfatsanta wrote:
blazinazn wrote:ok.. what...
CSRF attack blocked


I managed to repeat your error if I went a little overboard on breaking the function, but it worked if I didn't do too much extra.

...what?


I believe he's saying that if he did more than was required for the challenge that he also got the error message but that it worked if he simplified it.
User avatar
Defience
Addict
Addict
 
Posts: 1277
Joined: Thu Jun 12, 2008 3:16 pm
Blog: View Blog (0)


Re: Extbasic 1

Post by kaoS555 on Sun Jul 18, 2010 9:56 pm
([msg=42091]see Re: Extbasic 1[/msg])

Some people look at the glass half full, some half empty. I prefer to fill it till it spills. .:mrgreen: ..what's it take to make this one spill?
kaoS555
New User
New User
 
Posts: 13
Joined: Sat Jul 17, 2010 6:34 pm
Blog: View Blog (0)


Re: Extbasic 1

Post by Tjuring on Tue Jul 20, 2010 6:17 am
([msg=42233]see Re: Extbasic 1[/msg])

kaoS555 wrote:Some people look at the glass half full, some half empty. I prefer to fill it till it spills. .:mrgreen: ..what's it take to make this one spill?


Pretty much sums up this challenge :P
Tjuring
New User
New User
 
Posts: 1
Joined: Thu Jul 15, 2010 6:31 am
Blog: View Blog (0)


Re: Extbasic 1

Post by mutantkeyboard on Sun May 01, 2011 1:27 pm
([msg=56868]see Re: Extbasic 1[/msg])

Ok people, let me give you some hint.
str is a pointer to a char. Since it's pointer it means that it can allocate as much memory as it needs from a free space unlike a lol which is a static array of 200 characters.
I think that this is more than good hint to answer your question.
Now use logic.
mutantkeyboard
New User
New User
 
Posts: 1
Joined: Wed Jun 03, 2009 5:00 am
Blog: View Blog (0)


PreviousNext

Return to Extended Basics

Who is online

Users browsing this forum: No registered users and 0 guests