Add automatic downloading of debug symbols and patch elf command #59
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR is like #39. But I've finished automatic downloading of all platforms.
I've re-organized the structure of the libc database, allowing using debug symbols in different libc with different ID, and also allowing to save other shared object files like ld.so in libc packages for other exploitation like heap exploitation, which is requested in #9 .
The added code has also not been extensively tested. It might work on my machine, but bash is notoriously easy to mess up.
I will test it after the downloading of the libc database. It might not fit into the https://libc.rip website
Patching command currently does not support multiple libcs under the same directory. Maybe I need to add interaction to the script later.I've added the support of the multiple libraries under the same directory.
I'm not a native English speaker so there might be grammatical errors or typos in the script or this PR message.
After this PR, all of the libc databases need to be re-downloaded to fit into the new database structure
Please wait for the repairing of compatibility of gdb. I have little time to do it because I'm busy with my study.