LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Reverse Engineering ( Hex -> C code) (https://www.linuxquestions.org/questions/linux-software-2/reverse-engineering-hex-c-code-643193/)

sara1977 05-19-2008 04:01 AM

Reverse Engineering ( Hex -> C code)
 
Hi,

I would like to perform a reverse engineering to retrieve and modify the hex code into C source code on linux.

Is there a tool to convert Hex code or Assembly code into C source code for the targets like i386 and Xscale arm processor?

Thanks
Sara

digvijay.gahlot 05-19-2008 05:35 AM

This seems a difficult job, there is an open source decompiler though.
Take a look here

http://boomerang.sourceforge.net/

unSpawn 05-19-2008 05:59 AM

Quote:

Originally Posted by sara1977 (Post 3157684)
I would like to perform a reverse engineering to retrieve and modify the hex code into C source code on linux.

If you don't mind, can I ask why you would need to do that?

sara1977 05-19-2008 08:08 AM

to break bootloader password
 
Hi,

Yes, Boomerang does good job for the i386 platform. Unluckly, it doesn't give support to convert for my actual target ( Intel IXP425) Xscale arm platform.

I would need this conversion to hack the password of the Bootloader (Redboot Bootloader) to reconfigure the hardware and configuration file present on my target Wireless router board.

Using Hex editor tool, I could see the source code strings like "Enter passowrd:" in the ascii format and using the cross tool-chain arm-linux-strings and arm-linux-objdump, I have generated the assembly code from hex code. But still , I couldn't get to know the password string to break it.

How can I read the password string of the bootloader from the hex file ?

Thanks

unSpawn 05-19-2008 08:22 AM

Quote:

Originally Posted by sara1977 (Post 3157862)
I would need this conversion to hack the password of the Bootloader (Redboot Bootloader) to reconfigure the hardware and configuration file present on my target Wireless router board.

Yes, I thought it would be something like that. Anything related to "cracking" unfortunately is a no go wrt the LQ Rules. But if reconfiguration is your goal, why not flash it with a Intel IXDPG425 Redboot image?

sara1977 05-19-2008 08:59 AM

Yes , I can reconfigure and flash with Intel IXDP425 Redboot image on my own router development board. But sure it will throw a Flash init and need to change the partition, configuration and all on the existing 3rd party router board which I am using. Not hacking just to change the configuration and hardware setups on the bootloader.

Another issue is that to inorder to reflash wiht Redboot image, I need to perform via JTAG as ctrl+C on the redboot bootlaoder is password protected. So, I can't use >fis cre RedBoot command.

So for simplicity I need to know the password so that I can change only the configuration on the router board to make compatability with my development board.


All times are GMT -5. The time now is 11:30 PM.