Alright, my first posting, so I'll try to be as discreet and helpful as possible. Southafrica1 is dead on with his advice. If you read what he posted, you should be able to solve this mission. Remember, the objective of these missions is to LEARN the reasoning behind it, not just knock it out.
Examine the code:
- Code: Select all
void blah(char *str) { char lol[200]; strcpy(lol, str); }
Get a grasp for what this code does (remember, google is your friend!). Once you know what this code is doing, you need to find your way to exploit it. Unfortunately, this won't be accomplished by adding code (to the best of my knowledge), as whatever you enter will be a string. This means we will have to find a way to exploit our data type. Once you have an idea of where we're at, the best course of action would be to insert an illegal value into our data type. Remember, if you really want the value out of this mission, you'll do your research. I personally have VERY little experience in C++, and none in C (apart from some similarity between the two). 5 - 10 minutes of reading should be all it takes to learn what you need to know to tackle this mission. Between the information southafrica1 and myself provided, you should have a good idea where to start learning. Apologies if this contains spoilers, I personally just see it as a launch pad for learning the basics.