realoriginal / bootlicker Goto Github PK
View Code? Open in Web Editor NEWA generic UEFI bootkit used to achieve initial usermode execution. It works with modifications.
A generic UEFI bootkit used to achieve initial usermode execution. It works with modifications.
Any instructions how to build this code?
I am on Ubuntu 20.04, and already installed x86_64-w64-mingw32-gcc. But when I run "make" from root directory, I got errors:
$ make
In file included from include/ddk/ntddk.h:38,
from kernel/Common.h:14,
from kernel/KernelMain.c:11:
include/ddk/wdm.h:6678:9: error: unknown type name ‘SYSTEM_POWER_STATE_CONTEXT’
6678 | SYSTEM_POWER_STATE_CONTEXT SystemPowerStateContext;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from kernel/Common.h:19,
from kernel/KernelMain.c:11:
include/global/Hash.h:22:31: error: unknown type name ‘_In_’
22 | D_SEC( H ) UINT32 HashString( _In_ PVOID Buffer, _In_ UINT32 Length );
| ^~~~
include/global/Hash.h:22:50: error: unknown type name ‘_In_’
22 | D_SEC( H ) UINT32 HashString( _In_ PVOID Buffer, _In_ UINT32 Length );
| ^~~~
In file included from kernel/Common.h:20,
from kernel/KernelMain.c:11:
include/global/Pe.h:20:32: error: unknown type name ‘_In_’
20 | D_SEC( H ) PVOID PeGetFuncEat( _In_ PVOID ImageBase, _In_ UINT32 ExportHash );
| ^~~~
include/global/Pe.h:20:54: error: unknown type name ‘_In_’
20 | D_SEC( H ) PVOID PeGetFuncEat( _In_ PVOID ImageBase, _In_ UINT32 ExportHash );
| ^~~~
In file included from kernel/Common.h:22,
from kernel/KernelMain.c:11:
kernel/ThreadNotifyRoutine.h:23:45: error: unknown type name ‘_In_’
23 | D_SEC( D ) VOID WINAPI ThreadNotifyRoutine( _In_ HANDLE ProcessId, _In_ HANDLE ThreadId, _In_ BOOLEAN Create );
| ^~~~
kernel/ThreadNotifyRoutine.h:23:68: error: unknown type name ‘_In_’
23 | D_SEC( D ) VOID WINAPI ThreadNotifyRoutine( _In_ HANDLE ProcessId, _In_ HANDLE ThreadId, _In_ BOOLEAN Create );
| ^~~~
kernel/ThreadNotifyRoutine.h:23:90: error: unknown type name ‘_In_’
23 | D_SEC( D ) VOID WINAPI ThreadNotifyRoutine( _In_ HANDLE ProcessId, _In_ HANDLE ThreadId, _In_ BOOLEAN Create );
| ^~~~
In file included from kernel/Common.h:23,
from kernel/KernelMain.c:11:
kernel/ApcRoutine.h:20:41: error: unknown type name ‘_In_’
20 | D_SEC( D ) VOID NTAPI ApcNormalRoutine( _In_ PVOID NormalContext, _In_ PVOID SystemArgument1, _In_ PVOID SystemArgument2 );
| ^~~~
kernel/ApcRoutine.h:20:67: error: unknown type name ‘_In_’
20 | D_SEC( D ) VOID NTAPI ApcNormalRoutine( _In_ PVOID NormalContext, _In_ PVOID SystemArgument1, _In_ PVOID SystemArgument2 );
| ^~~~
kernel/ApcRoutine.h:20:95: error: unknown type name ‘_In_’
20 | D_SEC( D ) VOID NTAPI ApcNormalRoutine( _In_ PVOID NormalContext, _In_ PVOID SystemArgument1, _In_ PVOID SystemArgument2 );
| ^~~~
kernel/ApcRoutine.h:30:41: error: unknown type name ‘_In_’
30 | D_SEC( D ) VOID NTAPI ApcKernelRoutine( _In_ PRKAPC Apc, _In_ PVOID* NormalRoutine, _In_ PVOID* NormalContext, _In_ PVOID* SystemArgument1, _In_ PVOID* SystemArgument2 );
| ^~~~
kernel/ApcRoutine.h:30:58: error: unknown type name ‘_In_’
30 | D_SEC( D ) VOID NTAPI ApcKernelRoutine( _In_ PRKAPC Apc, _In_ PVOID* NormalRoutine, _In_ PVOID* NormalContext, _In_ PVOID* SystemArgument1, _In_ PVOID* SystemArgument2 );
| ^~~~
kernel/ApcRoutine.h:30:85: error: unknown type name ‘_In_’
30 | D_SEC( D ) VOID NTAPI ApcKernelRoutine( _In_ PRKAPC Apc, _In_ PVOID* NormalRoutine, _In_ PVOID* NormalContext, _In_ PVOID* SystemArgument1, _In_ PVOID* SystemArgument2 );
| ^~~~
kernel/ApcRoutine.h:30:112: error: unknown type name ‘_In_’
30 | D_SEC( D ) VOID NTAPI ApcKernelRoutine( _In_ PRKAPC Apc, _In_ PVOID* NormalRoutine, _In_ PVOID* NormalContext, _In_ PVOID* SystemArgument1, _In_ PVOID* SystemArgument2 );
| ^~~~
In file included from kernel/Common.h:23,
from kernel/KernelMain.c:11:
kernel/ApcRoutine.h:30:141: error: unknown type name ‘_In_’
30 | D_SEC( D ) VOID NTAPI ApcKernelRoutine( _In_ PRKAPC Apc, _In_ PVOID* NormalRoutine, _In_ PVOID* NormalContext, _In_ PVOID* SystemArgument1, _In_ PVOID* SystemArgument2 );
| ^~~~
kernel/KernelMain.c:33:35: error: unknown type name ‘_In_’
33 | D_SEC( D ) VOID NTAPI KernelMain( _In_ PVOID KernelBase, _In_ PVOID DriverBase )
| ^~~~
kernel/KernelMain.c:33:58: error: unknown type name ‘_In_’
33 | D_SEC( D ) VOID NTAPI KernelMain( _In_ PVOID KernelBase, _In_ PVOID DriverBase )
| ^~~~
make: *** [Makefile:48: kernel/KernelMain.o] Error 1
My machine also have gnu-efi
package installed.
Hello, I would like to know if it is compatible with the latest version of Windows 11? and what is the difference between this bootkit and https://github.com/realoriginal/bootdoor ?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.