VBoxHardenedLoader
VBoxHardenedLoader copied to clipboard
VBoxVgaDxe Module !
UEFI support need binary patch of VBoxVgaDxe module in VBoxEFI64 file. See http://www.kernelmode.info/forum/viewtopic.php?p=27460#p27460
Originally posted by @hfiref0x in https://github.com/hfiref0x/VBoxHardenedLoader/issues/42#issuecomment-449647700
Hello since this project is not updated for a long time, im try make some changes in vbox source and compile it by myself, changed all names and PCI IDs but now im stuck in VBoxVgaDxe module, have you some tips how i modify VBoxVgaDxe inside of VBoxEFI64.fd and compile it ?
Any tips is appreciated.
Use UEFITool
Thanks for attention, you apply patch directly in VBoxEFI64.fd file ?
Or you compile it from source using edksetup.bat ?
UEFITool is a cross-platform C++/Qt program for parsing, extracting and modifying UEFI firmware images. It supports parsing of full BIOS images starting with the flash descriptor or any binary files containing UEFI volumes.
There is a guide how to modify vbox efi image on kernelmode.info, however since this site archieved I can't find it using old links. You have to find it yourself somewhere in VBoxHardenedLoader thread.
Hello i find it on kernelmode.info https://www.kernelmode.info/forum/viewtopic62cf-2.html?f=11&t=3478&start=50#p27460
Maybe im loss some part, after modify VBoxEFI64.fd, guest OS is stuck on UEFI Shell, maybe im corrupted binary on HIEW or UEFITool, able to see guest system verbose boot starting but still stuck on UEFI Shell.
Nice, found the issue and solution
The issue: in stage when you extract PE32 Image using "UEFITool" it extract file with extension .bin , but after you patch it on "HIEW" and try Replace Body in "UEFITool" it corrupt firmware in some way
The trick is rename extracted file in first stage:
EXTRACTEDFILE.bin to EXTRACTEDFILE.efi
Im almost finish my journey to Fix source code of VirtualBox, The last module i need to patch is "VGA BIOS" tried change it on source but it still show "Oracle VM VGA BIOS"
Any tips to patch this module is apreciated !