Skip to content
Betsalel (Saul) Williamson edited this page Jan 3, 2021 · 8 revisions

Warning !!! This tutorial is currently under construction... Proceed at your own risk

Crack the Code

Now that we have an understanding of come C programs it is up to you to devise a solution written in C to crack the code!

Requriements

  1. You don't steal your algorithm to your solution
  2. You use C
  3. You only use the unmodified release version of secretProgram from step-1-code-gen in your code to crack the code.

Tips

Use system command to execute the program. If you need to see how this works see the solution for a working example.

Think like an engineer! You can either brute force the 256 options or you can try to crack how the program generates the code.

Here's a hint. It will be quicker to use a brute force approach.

Your program may take as input the absolute path to the guess program.

What about letting us know the results? Will it output a simple rotating status icon while it is running and then when it is complete it will output the pass code? Or just output the code that works for the next 20 seconds?

You may want to copy the makefile to compile your code that is in the solutions or the first tutorial.

Again, the way the secretProgram works is that it takes the current date and time down to the minute, XORs this number with a hash and then that is the password. If the correct password was entered then it outputs success message and exits with the code 0. If not, then the program displays exits with the code 1. You can try and work out the hash and compute things manually, but in this case it will be easier to build a C program that will run the program as long as it takes to get the correct answer.

Updates

  • Jan 1, 2021 - Generated from m4 template

Previous Page | Next Page