CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
rapid7

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.

GitHub Repository: rapid7/metasploit-framework
Path: blob/master/external/source/win_kernel_common/kernel.h
Views: 11766
1
#ifndef _KERNEL_H
2
#define _KERNEL_H
3
4
#include "windefs.h"
5
6
typedef struct _MemMapping
7
{
8
HANDLE mapping;
9
LPBYTE buffer;
10
} MemMapping;
11
12
BOOL was_token_replaced();
13
BOOL prepare_for_kernel();
14
VOID steal_process_token();
15
VOID hal_dispatch_steal_process_token();
16
ULONG_PTR get_hal_dispatch_pointer();
17
DWORD get_page_size();
18
BOOL create_anon_mapping(MemMapping* memMap);
19
VOID destroy_anon_mapping(MemMapping* memMap);
20
VOID invoke_hal_dispatch_pointer();
21
BOOL is_driver_loaded(wchar_t* driverName);
22
DWORD execute_payload(LPVOID lpPayload);
23
24
#endif
25
26