c3c / miracast

Tools for analyzing EZCast / Miracast devices
GNU General Public License v2.0
23 stars 9 forks source link

Information on cross compiled binaries #11

Closed Sledmine closed 1 month ago

Sledmine commented 1 month ago

Hello!

I would like to know if is possible to know which setup you had to cross compile binaries for the firmware, I have tried using: gcc-mipsel-linux-gnu g++-mipsel-linux-gnu...

But binaries always result in crashes, I have managed my way into uploading binaries to the latest firmware that my device has but there is not to much can do if I can't execute my code (I'm stll triying to figure out the firmware structure so we can use a custom fs in the future).

Do you happen to remember or have that compiling setup around?

I really would appreciate your input on this :(, Thanks!

c3c commented 1 month ago

This is a while ago, reattempting this now, I would try to use musl instead as there's no dependency on libc.

Have a look at this repo's build.sh file: https://github.com/c3c/CVE-2021-4034, which cross-compiles to a range of different targets using musl.

Good luck!

Sledmine commented 1 month ago

Thanks a lot, did not know about musl, it is pretty useful! image image