https://codeberg.org/SolusRaion/libdisk-headers
So, rewrote and hacked through this. There were a few steps here:
1. Endeavor put the libdisk.so in ghidra to get the functions that it can expose.
2. Cross-references were carried out using nm and ghidra against mount(1) and umount(1) for publicly used functions
3. We had to build a few throwaway programs on a non-volatile install (e.g. one that we were cool with bricking) to verify the functions worked as intended.
Here ya go.
The libdisk library will be revisited soon. For now, though, this is what we got. All those private functions are now available. You're welcome.
For those unaware, Endeavor is my good friend and RE partner. He has years of experience doing this for the US government.
So, rewrote and hacked through this. There were a few steps here:
1. Endeavor put the libdisk.so in ghidra to get the functions that it can expose.
2. Cross-references were carried out using nm and ghidra against mount(1) and umount(1) for publicly used functions
3. We had to build a few throwaway programs on a non-volatile install (e.g. one that we were cool with bricking) to verify the functions worked as intended.
Here ya go.
The libdisk library will be revisited soon. For now, though, this is what we got. All those private functions are now available. You're welcome.
For those unaware, Endeavor is my good friend and RE partner. He has years of experience doing this for the US government.