Can you crack it? Stage 2 Solution
There has been a lot of news about the "Can you crack it?" challenge that is currently to publicise GCHQ recruiting. Here is my solution for stage 2 - the implementation of the Virtual Machine, or emulator. It's actually pretty straight forward when you get a hold of a few of the nuances. I'll put a list of hints here, and then present the full solution after the fold.
- As of stage 1 - everything is centred around the x86 architecture, this means that your instructions need to mirror the behaviour of their x86 equivalents
- Firmware seems to be irrelevant - don't worry about it.
- There is no real trickery here - it's just a straight forward instruction set simulator implementation
- The programme will finish on a HALT instruction
This is actually quite a neat little program that works by decrypting itself further programme code which it then runs and decrypts the message to get to the next stage... enjoy...
Humorous Scam E-Mails
I usually totally ignore these 419 emails, they drop right into my Spam box - but this one was really quite funny, and oddly came from HK/China (they usually appear from Africa!).
Anyway, I was massively excited by a whole $17.3 - wow! And he has done the underground works - totally legal - awesome!
Attn:
I am contacting you as the senior manager in a bank in China and financial advisor and account officer to a private investor about fund deposit totaling $17.3. I assure that the transaction is 100% risk free and legal having done all the underground works.
As soon as I receive a response for your interest, I will send you the complete details of the successful completion of this transaction. Please contact on my private email below for further clarification.
Best regards,
Jan Yiun
XMOS Community