ckuethe / usbarmory

Scripts, learnings, sample configurations, and random whining
GNU General Public License v2.0
146 stars 20 forks source link

Fix rom1 section base address #2

Closed x56 closed 9 years ago

x56 commented 9 years ago

I noticed while adding to the Blob Reversing wiki some of the function addresses weren't lining up as expected. The issue seems to be with this script loading the rom1 section incorrectly.

ckuethe commented 9 years ago

Merged, thanks!

ckuethe commented 9 years ago

Also, I've just scribbled up a couple of hopper scripts to make it easier to import and export text files containing addresses and labels...

https://github.com/ckuethe/HopperScripts/commits/annotation_tools

x56 commented 9 years ago

Ah thanks for pointing these out! I struggled a couple of weeks ago with scripting IDA to perform the initial loading of the two ROM chunks and creation of segments, but failed due to instabilities with my somewhat outdated version. I like the elegance of your approach of creating the ELF for accomplishing this. I'll also try migrating to Hopper and using/supplementing these scripts.

ckuethe commented 9 years ago

Check out the updated ELF generator; it now creates memory regions (including registers) which should make figuring out what code does a lot easier since you can now name an address and use that to guess the referrer's purpose.

x56 commented 9 years ago

Oh, this is awesome. I overlooked your reference to the register map before, and had already created segments and labeled many registers by hand in IDA. Really glad that won't be necessary to redo by hand as well :)

ckuethe commented 9 years ago

Because Boundarydevices' register map doesn't have every register listed I parsed the mx53 reference.

https://github.com/ckuethe/usbarmory/commit/647e24e33adbdb632bed985af399919761ab1905 https://gist.github.com/ckuethe/682c0083bc3ff20a8fce