in the last post I mentioned to maybe make a bigger challenge, which I think I'll publish within the next days. Today I got a little introduction to Client/Server cracking because this will be extremely important for realistic exercises. In most of the cases your password/license is tested Server-side, so it is very helpful to know some fundamentals. This CrackMe is very easy but you can do much with it (Different ways to solve, change server, ...), so it should don't get underestimated .
Description of the RE Challenge
Ok, it is a very simple Client/Server system. I coded it a bit weird, because you should learn how to understand more complex code. The password mechanism is extremely easy, but I think you'll find that out on your own. A last thing to say is that I recommend to first RE the server when you're done with the exercises, because in a realistic scenario you probably won't have the chance to have a look at the server. If you stuck (I think you'll do it but maybe you get confused) you can of course have a look at the server for some help.
- A fundamental understanding of Client/Server programming would be very valuable
- C# programming or any other language (I would just love it to see my C# client communicating with a python server )
This time I've got the obfuscated version of both, the client and the server. As always I recommd to use the obfuscated one (I saw nobody used the unobfuscated one in the last part; Well Done!), but you can of course have a look at the unobfuscated one.
-- Client --
-- Server --
Start the Server first and then the Client on the same computer (As always: Tested on Win7). If you get any Errors just ask me .
Exercises? Why don't just crack the password and feel 1337? This challenge is a little introduction to Client/Server systems, so it is useful to try different things out. There are more than one way for solving it and I recommend to play a bit around for collecting experience.
- Change the client that it doesn't need the validation of the server
- Code your own server which always returns that the password is valid (Could also be done by changing the existing server; for this the unobfuscated one could be helpful)
- Find the password in the servers code (Yep, easy stuff for you )
- And maybe you want to play a bit around? Change client and server with adding more complex password mechanisms, etc...
If you get stuck at a particular point show here for some help .
How to change the code of the client?
In dotPeek you can't edit the code right in the window, so just copy it out into a new project and edit it there! I recommend to change the variable names of course . Or you can use the unobfuscated version for a better useable code.
How to code a server in C#
You could use my code and just edit it or you can google for a good tutorial on that. I'm sure you'll find something for you.
How to send always an "Ok" to the Client?
Just don't test the password Server-Side. Jump directly to the send of the "1", which represents an "Ok".
I hope this challenge is useful for playing around with and learning some basics. Finally I want to add that I work hardly on the next challenge, which should be ready in the next 1-3 days. Spoiler: It will include a little self-written game .