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

Linux kernel: kallsyms command? #1836

Open
disconnect3d opened this issue Jul 25, 2023 · 5 comments
Open

Linux kernel: kallsyms command? #1836

disconnect3d opened this issue Jul 25, 2023 · 5 comments

Comments

@disconnect3d
Copy link
Member

I am not sure if this is doable, but if someone debugs a kernel with KASLR it would be nice to be able to find and parse kallsyms from within Pwndbg and then either set symbols or at least be able to print/fetch them via some Pwndbg API.

Here is a project that shows how one could deal with this: https://github.com/pagabuc/kallsyms-extractor/ although I am not sure if this works with latest kernels.

@disconnect3d
Copy link
Member Author

disconnect3d commented Jul 25, 2023

Btw if we do this by looking for some strings in memory, in order to be efficient, we may need to e.g. search only for read-only mappings or read-write or something like that -- depending on where the searched string is to be expected in.

@disconnect3d
Copy link
Member Author

This may be useful here as well: https://github.com/marin-m/vmlinux-to-elf

@chrf01
Copy link
Contributor

chrf01 commented Mar 25, 2024

@disconnect3d
Copy link
Member Author

disconnect3d commented Mar 25, 2024 via email

@chrf01
Copy link
Contributor

chrf01 commented Mar 25, 2024

I'll take a look at this

@chrf01 chrf01 mentioned this issue Mar 28, 2024
@chrf01 chrf01 mentioned this issue Apr 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants