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

Adding basic vmlinux identification & extraction #296

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

rockrid3r
Copy link

@rockrid3r rockrid3r commented Sep 14, 2023

Adds kernel-pwning support. Partly fixes #293

Right now it works if shell commands vmlinux-to-elf [file] [outfile] and extract-vmlinux [file] > [outfile] works.

We need to discuss how to add the vmlinux-to-elf and extract-vmlinux dependencies since they both are non-rust, so can't just append into cargo.toml.

  • vmlinux-to-elf is a github repository
  • extract-vmlinux is just a bash script provided in any linux source(does not depend on kernel version).

We can make it 2 ways:

  • add custom initialization (post-cargo). Like "install.sh" and implement installation there
  • just show in README.md how to install them both.

What do you prefer?

}

impl Opts {
/// Print the locations of known files (binary, libc, linker)
pub fn print(&self) {
println!("Found following {}-land challenge binaries:", if self.ker { "kernel" } else {"user"});
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pretty long line. And double spaces on line 124. Consider running rustfmt on changed files

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

Successfully merging this pull request may close these issues.

Add kernel-pwning initialization
2 participants