Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhancement: Memory scanning, core dump parsing #84

Open
eternaleclipse opened this issue Oct 4, 2018 · 3 comments
Open

Enhancement: Memory scanning, core dump parsing #84

eternaleclipse opened this issue Oct 4, 2018 · 3 comments

Comments

@eternaleclipse
Copy link
Contributor

Currently it is possible to scan memory only by dumping it manually to a file and using the --raw option. A useful feature would be the ability to parse core dump files (gdb can generate core dumps using the gcore command, WinDBG has a similar command called .dump) and scan executable pages in the entire process memory for gadgets. This can also be used to access the process state, register, stack etc and as suggested in #40.

@sashs
Copy link
Owner

sashs commented Oct 4, 2018

Since coredumps are ELF files, it is possible to load those files with ropper without using the --raw option. However the Windows dump format is different. In order to use that filebytes has to be extended with that format.

@eternaleclipse
Copy link
Contributor Author

I used ropper to scan a core file, it does work but with incorrect offset. I used objdump to find the same gadget (objdump will display the correct address for the mapped memory), calculate the offset and then used ropper -I to fix the image base. It does work but the process is kinda tedious. I'm trying to find out how to find the correct offset by parsing the core file directly.

@XVilka
Copy link
Contributor

XVilka commented Sep 12, 2019

You can use the radare2 for loading any kind of format though, since it supports core files and minidumps of different kinds, and it's available as a library.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants