CMPS-4350 Lab 8

Reverse Engineering

Your job is to reverse engineer.

You can freely talk with each other in order to come up with a solution, but you each need to write your own code.

Move to your /4350/8/ directory on Odin and copy the lab files:

cp /home/stu/tredden/public_html/4350/8/* .


Challenge 1 - Mystery Box
You are given an executable "mystery", but no source code to go with it.

Your job is to write the "mystery.cpp" source code that will produce an executable 
that mimics the output of the "mystery" executable.

Hint: Run the executable with many different inputs.



Challenge 2 - Broken Radio
This time you are given source code, but it does not work like it's supposed to.

Your job is to analyze the code and fix it. You'll need to do some debugging (heh heh)
to get an executable. 

The radio station will be broadcasting from the projector, so you will be able to see
which song should be playing.

You'll know your radio works if you can sing along.


What to turn in?
mystery.cpp and radio.cpp in your /4350/8/ directory.