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/exploits/CVE-2010-0232/kitrap0d_payload/kitrap0d.h
Views: 11784
1
/*!
2
* @file kitrap0d.h
3
*/
4
5
#ifndef _METERPRETER_SOURCE_ELEVATOR_KITRAP0D_H
6
#define _METERPRETER_SOURCE_ELEVATOR_KITRAP0D_H
7
8
#define KSTACKSIZE 1024
9
10
#define EFLAGS_TF_MASK 0x00000100 // trap flag
11
12
#ifndef PAGE_SIZE
13
#define PAGE_SIZE 0x1000
14
#endif
15
16
enum
17
{
18
VdmStartExecution = 0,
19
VdmInitialize = 3
20
};
21
22
typedef struct _VDMTIB
23
{
24
ULONG Size;
25
PVOID Padding0;
26
PVOID Padding1;
27
CONTEXT Padding2;
28
CONTEXT VdmContext;
29
DWORD Padding3[1024];
30
} VDMTIB, * LPVDMTIB;
31
32
VOID elevator_kitrap0d( DWORD dwProcessId, DWORD dwKernelBase, DWORD dwOffset );
33
34
#endif
35
36