0vercl0k / rp

rp++ is a fast C++ ROP gadget finder for PE/ELF/Mach-O x86/x64/ARM/ARM64 binaries.
MIT License
1.79k stars 250 forks source link

Specify architecture manually #9

Closed CTurt closed 9 years ago

CTurt commented 9 years ago

Some binaries fail to load with "Cannot determine the executable format used".

We should be able to specify manually the correct architecture for cases when it is detected incorrectly, or fails to detect at all.

0vercl0k commented 9 years ago

A workaround to this would be to directly dump the code you are interested in & feed it with --raw=archyouwant. Though, the issue described here doesn't seem to be related to architectures but executable formats -- the function supposed to select the correct one is dumb: https://github.com/0vercl0k/rp/blob/master/src/executable_format.cpp#L33. If it answers your questions, I would appreciate if you could close the issue please :-). Cheers, 0vercl0k

2015-06-18 11:44 GMT-07:00 CTurt notifications@github.com:

Some binaries fail to load with "Cannot determine the executable format used".

We should be able to specify manually the correct architecture for cases when it is detected incorrectly, or fails to detect at all.

— Reply to this email directly or view it on GitHub https://github.com/0vercl0k/rp/issues/9.

CTurt commented 9 years ago

Thanks very much; it's working perfectly now.

0vercl0k commented 9 years ago

Great!

2015-06-20 3:41 GMT-07:00 CTurt notifications@github.com:

Thanks very much; it's working perfectly now.

— Reply to this email directly or view it on GitHub https://github.com/0vercl0k/rp/issues/9#issuecomment-113744685.