Question

Locked

Hex file reader

By yoginc ·
Hi.I wanted to ask if there was any way to display the contents of a hex file.I have a file with the extension '.hex'.I know its part of a program code which i got from somewhere(only a hex file,nothing else).I wish to make changes in the program.Is there any way i can edit the contents of the program using only the hex file,or like,is there a possibility of recovering the program using the hex file only?

This conversation is currently closed to new comments.

15 total posts (Page 1 of 2)   01 | 02   Next
| Thread display: Collapse - | Expand +

All Answers

Collapse -

google

by PurpleSkys In reply to Hex file reader

hex file editors...

Collapse -

tried it..

by yoginc In reply to google

i tried that and i found some software..i tried them and they open and display the contents as an array of hex numbers with offsets.They made no sense to me.However i did find i could 'export' the file in some other extension(like *.cpp,*.c,*.html etc.).If i export it as a .cpp file,will i be able to view it in a C++ simulator?

Collapse -

Olly

by brian In reply to tried it..

Try OllyDBG (it will take some digging to find, but it might work for you)

Collapse -

That's what hex editors do.

by seanferd In reply to tried it..

If it is a C++ source file, you'll be able to view it in a C++ IDE. If it is compiled, you'll need a decompiler or debugger.

Collapse -

Also known as a dissassembler

by robo_dev In reply to That's what hex editors d ...

...discussion of which is probably against the rules around here :)

Collapse -

Yes, indeed.

by seanferd In reply to Also known as a dissassem ...

One could probably find a dissassembler that handles files created in a number of different languages. Of course, getting the complete original source out is not terribly likely, AFAIK, with any method. Sometimes tools like these have worked well enough for what I've needed to find out, but not always.

Collapse -

I would say very very unlikly

by robo_dev In reply to Yes, indeed.

My experience has been that typically you can trace the program logic, and maybe sorta figure out what modules do what, but it's like turning sausage back into a pig....rotsa ruck with that.

The more useful thing often is to run the program in a debugger, but I digress.... I've used a tool called IDA Pro, PE Browse Pro, and a whole raft of others I cannot remember.

Collapse -

Thank you

by seanferd In reply to I would say very very unl ...

for confirming my not-very-well-informed suspicions.

Collapse -

Decompiler?

by yoginc In reply to I would say very very unl ...

So you are saying that there are some software like disassemblers which might be available that could give you the the complete program from the hex file...Actually this will be my first hand in high level programming as i have never tried it before.

Collapse -

Decompilers may give you *some* idea of the source

by seanferd In reply to I would say very very unl ...

but you will not get full source code out of it. You'll get some c-like structures and a bunch of assembly code.

Back to Software Forum
15 total posts (Page 1 of 2)   01 | 02   Next

Related Discussions

Related Forums