fiano icon indicating copy to clipboard operation
fiano copied to clipboard

feature request: extract_pe32 command

Open hugelgupf opened this issue 3 years ago • 0 comments

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

hugelgupf avatar Mar 17 '22 21:03 hugelgupf