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

feature request: extract_pe32 command #370

Open
hugelgupf opened this issue Mar 17, 2022 · 0 comments
Open

feature request: extract_pe32 command #370

hugelgupf opened this issue Mar 17, 2022 · 0 comments

Comments

@hugelgupf
Copy link
Member

I was trying to extract a NERF kernel from an existing BIOS and what I had to do was:

$ utk bios extract dir/
$ utk table

then I had to find the GUID in the table from the "NERF" name (because the directory structure doesn't include the names)

so then I found the right directory, but the file has the 4 byte EFI section header, so you gotta

$ cd <guid whatever>
$ dd if=0.sec of=linux.bin bs=1 skip=4
$ file linux.bin
linux.bin: Linux kernel x86 boot executable bzImage, ...

A command for doing this would be easier

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

1 participant