Skip to content

feature request: extract_pe32 command #370

@hugelgupf

Description

@hugelgupf

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions