forked from mlghuskie/NoBastian
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTypes.h
98 lines (83 loc) · 1.41 KB
/
Types.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
#pragma once
#include "Include.h"
#define MAX_PACKET_SIZE 0x10000
namespace asmjs
{
enum ABCommand : uint64_t
{
C_Invalid = 0x0,
C_Ping = 0x1,
C_AccuireProcessHandle = 0x2,
C_RPM = 0x3,
C_WPM = 0x4,
C_VirtualAlloc = 0x5,
C_SetProcessHandle = 0x6,
C_GetModuleBase = 0x7,
C_UnloadModule = 0x8,
C_VirtualProtect = 0x9
};
enum ABStatus : signed char
{
S_Success = 0x1,
S_Fail = 0x0,
S_OpenProcessFailed = -0x1,
S_HandleHasBeenStripped = -0x2
};
struct ABRequest
{
ABCommand Command;
};
struct ABResponse
{
ABStatus Status;
};
struct ReqSetProcessHandle : ABRequest
{
HANDLE hProcess;
};
struct ReqAccuireProcessHandle : ABRequest
{
uint64_t ProcessId;
ACCESS_MASK DesiredAccess;
};
struct ResModuleBase : ABResponse
{
uint64_t ModuleBase;
};
struct ReqRpm : ABRequest
{
uint64_t Address;
uint64_t DataSize;
};
struct ResRpm : ABResponse
{
byte Data[];
};
struct ReqWpm : ABRequest
{
uint64_t Address;
uint64_t DataSize;
byte Data[];
};
struct ReqVp : ABRequest
{
uint64_t Address;
uint64_t Size;
DWORD NewProtection;
};
struct ResVp : ABResponse
{
DWORD OldProtection;
};
struct ReqVa : ABRequest
{
uint64_t Address;
uint64_t Size;
DWORD AllocationType;
DWORD Protection;
};
struct ResVa : ABResponse
{
uint64_t Address;
};
}