We Talk Coding

How to reverse engineer algorithm, regardless the programming language?

My friend put a challenge on me to crack his algorithm. He provides an ID number and his algorithm generates virtually unlimited 8 digits passwords. Any passwords as long as it matches the algorithm, will grant access, which mean I win. Is there any method to reverse engineer this algorithm, regardless the programming language?

Public Comments

  1. yes... if you have an executable (that is, he didn't write it in something interpreted like java, c#, or a scripting language) then you can use the linux utility objdump to dump the assembly to a file... then use gdb with breakpoints to walk through the code and deduce the algorithm
  2. Or, if yer on Windows, you can use Ida to do the same thing on a windows platform.
  3. Sometimes you can load the .exe into something like Visual Studio 2005 Express (free) and look at the assembler statements. Very difficult.
Powered by Yahoo! Answers