diff options
author | Toni Uhlig <matzeton@googlemail.com> | 2025-04-23 12:52:15 +0200 |
---|---|---|
committer | Toni Uhlig <matzeton@googlemail.com> | 2025-04-23 12:52:15 +0200 |
commit | 3f4a6ab2fd539a77ce8c076ff0117264fc67d06b (patch) | |
tree | 9bc01a9612e12e4ba7d9b840dcdb96027a8a3257 | |
parent | 60c4ec50b21b35ef49900abee704a39e0ea4ec17 (diff) |
Revert "Changed protocol GUID, backdoor variable name and cookie value"
This reverts commit 60c4ec50b21b35ef49900abee704a39e0ea4ec17.
-rw-r--r-- | Application/EfiDSEFix/Makefile.mingw | 2 | ||||
-rw-r--r-- | Application/Loader/Loader.c | 3 | ||||
-rw-r--r-- | EfiGuardPkg.dec | 2 | ||||
-rw-r--r-- | Include/Protocol/EfiGuard.h | 6 |
4 files changed, 8 insertions, 5 deletions
diff --git a/Application/EfiDSEFix/Makefile.mingw b/Application/EfiDSEFix/Makefile.mingw index cc3b0a4..ae6f8d3 100644 --- a/Application/EfiDSEFix/Makefile.mingw +++ b/Application/EfiDSEFix/Makefile.mingw @@ -1,6 +1,6 @@ CC = x86_64-w64-mingw32-gcc CXX = x86_64-w64-mingw32-g++ -CFLAGS = -m64 -fPIC -municode +CFLAGS = -m64 -fPIC -mconsole -municode TARGETS := src/main.o src/pe.o src/sysinfo.o src/EfiDSEFix.o src/hde/hde64.o IMPLIBS := -lntdll diff --git a/Application/Loader/Loader.c b/Application/Loader/Loader.c index d7eb2f1..aab4a5c 100644 --- a/Application/Loader/Loader.c +++ b/Application/Loader/Loader.c @@ -31,16 +31,19 @@ STATIC CHAR16* mDriverPaths[] = { STATIC EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL *mTextInputEx = NULL; VOID +EFIAPI BmRepairAllControllers( IN UINTN ReconnectRepairCount ); VOID +EFIAPI BmSetMemoryTypeInformationVariable( IN BOOLEAN Boot ); BOOLEAN +EFIAPI BmIsAutoCreateBootOption( IN EFI_BOOT_MANAGER_LOAD_OPTION *BootOption ); diff --git a/EfiGuardPkg.dec b/EfiGuardPkg.dec index 750f034..1bec751 100644 --- a/EfiGuardPkg.dec +++ b/EfiGuardPkg.dec @@ -15,7 +15,7 @@ [Protocols] ## Include/Protocol/EfiGuard.h - gEfiGuardDriverProtocolGuid = { 0xa2b65550, 0x8675, 0x48ac, { 0xbd, 0xe6, 0x02, 0xa5, 0x3b, 0xc2, 0x02, 0x3c }} + gEfiGuardDriverProtocolGuid = { 0x51e4785b, 0xb1e4, 0x4fda, { 0xaf, 0x5f, 0x94, 0x2e, 0xc0, 0x15, 0xf1, 0x7 }} ## Originally in OvmfPkg/Csm/Include/Protocol/LegacyBios.h gEfiLegacyBiosProtocolGuid = { 0xdb9a1e3d, 0x45cb, 0x4abb, {0x85, 0x3b, 0xe5, 0x38, 0x7f, 0xdb, 0x2e, 0x2d }} diff --git a/Include/Protocol/EfiGuard.h b/Include/Protocol/EfiGuard.h index 2b1e19a..b5c3d1e 100644 --- a/Include/Protocol/EfiGuard.h +++ b/Include/Protocol/EfiGuard.h @@ -12,7 +12,7 @@ extern "C" { // #define EFI_EFIGUARD_DRIVER_PROTOCOL_GUID \ { \ - 0xa2b65550, 0x8675, 0x48ac, { 0xbd, 0xe6, 0x02, 0xa5, 0x3b, 0xc2, 0x02, 0x3c } \ + 0x51e4785b, 0xb1e4, 0x4fda, { 0xaf, 0x5f, 0x94, 0x2e, 0xc0, 0x15, 0xf1, 0x7 } \ } // @@ -58,12 +58,12 @@ typedef enum _EFIGUARD_DSE_BYPASS_TYPE { // (1) one of the Byte through Qword fields (depending on size) will contain the value at KernelAddress, or // (2) the memcpy performed will be in the opposite direction, i.e. from KernelAddress to UserBuffer. // -#define EFIGUARD_BACKDOOR_VARIABLE_NAME L"GLM" // "MLG" // TODO: randomize? +#define EFIGUARD_BACKDOOR_VARIABLE_NAME L"roodkcaBdrauGifE" // "EfiGuardBackdoor" // TODO: randomize? #define EFIGUARD_BACKDOOR_VARIABLE_GUID &gEfiGlobalVariableGuid #define EFIGUARD_BACKDOOR_VARIABLE_ATTRIBUTES (EFI_VARIABLE_NON_VOLATILE | EFI_VARIABLE_BOOTSERVICE_ACCESS | EFI_VARIABLE_RUNTIME_ACCESS) #define EFIGUARD_BACKDOOR_VARIABLE_DATASIZE sizeof(EFIGUARD_BACKDOOR_DATA) -#define EFIGUARD_BACKDOOR_COOKIE_VALUE (0xBEEFBEEF) +#define EFIGUARD_BACKDOOR_COOKIE_VALUE (0xDEADC0DE) typedef struct _EFIGUARD_BACKDOOR_DATA { |