forked from namazso/simplerw_sym
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathshared.hpp
More file actions
38 lines (31 loc) · 634 Bytes
/
shared.hpp
File metadata and controls
38 lines (31 loc) · 634 Bytes
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
#pragma once
#include <cstdint>
// generated with random.org guaranteed secure :))))
constexpr static uint64_t k_magic_initial = 0x293f819e4d70015a;
#define SYMLINK_NAME L"\\DosDevices\\NotADevice"
enum VmOperationType : uint32_t
{
VmOperationRead,
VmOperationWrite,
VmOperationGetRemotePeb
};
struct VmOperationResult
{
NTSTATUS status;
uint32_t result_bytes;
};
struct VmOperation
{
VmOperationType type;
uint32_t size;
VmOperationResult* status;
void* local_address;
void* remote_address;
};
struct CmdVmOperations
{
uint32_t local_pid;
uint32_t remote_pid;
uint32_t size;
VmOperation ops[1];
};