LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-19-2008, 05:01 AM   #1
sara1977
LQ Newbie
 
Registered: May 2008
Posts: 3

Rep: Reputation: 0
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
 
Old 05-19-2008, 06:35 AM   #2
digvijay.gahlot
Member
 
Registered: Mar 2008
Posts: 53

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

http://boomerang.sourceforge.net/
 
Old 05-19-2008, 06:59 AM   #3
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3590Reputation: 3590Reputation: 3590Reputation: 3590Reputation: 3590Reputation: 3590Reputation: 3590Reputation: 3590Reputation: 3590Reputation: 3590Reputation: 3590
Quote:
Originally Posted by sara1977 View Post
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?
 
Old 05-19-2008, 09:08 AM   #4
sara1977
LQ Newbie
 
Registered: May 2008
Posts: 3

Original Poster
Rep: Reputation: 0
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

Last edited by sara1977; 05-19-2008 at 09:10 AM.
 
Old 05-19-2008, 09:22 AM   #5
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3590Reputation: 3590Reputation: 3590Reputation: 3590Reputation: 3590Reputation: 3590Reputation: 3590Reputation: 3590Reputation: 3590Reputation: 3590Reputation: 3590
Quote:
Originally Posted by sara1977 View Post
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?
 
Old 05-19-2008, 09:59 AM   #6
sara1977
LQ Newbie
 
Registered: May 2008
Posts: 3

Original Poster
Rep: Reputation: 0
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.

Last edited by sara1977; 05-19-2008 at 10:03 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Reverse Engineering for Portability dlublink Linux - Software 1 11-23-2005 02:43 PM
Reverse engineering code barrythai SUSE / openSUSE 4 09-08-2005 06:29 AM
Reverse Engineering tools hari_s_82 Linux - Newbie 0 10-13-2004 07:58 AM
reverse engineering walterw Programming 3 01-18-2003 05:15 PM
Reverse engineering the kernel lolmc Linux - General 7 07-06-2002 12:54 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:13 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration