-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathconstants.py
More file actions
65 lines (58 loc) · 1.2 KB
/
constants.py
File metadata and controls
65 lines (58 loc) · 1.2 KB
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
type_map = {
"0x1": "byte",
"0x2": "word",
"0x4": "dword",
"0x8": "qword"
}
dataTypes = {
"PWSTR":0x8,
"PVOID":0x4,
"PWCHAR":0x4,
"PSIZE_T":0x4,
"HANDLE":0x8,
"SIZE_T":0x8,
"UCHAR":0x1,
"USHORT":0x2,
"BYTE":0x1,
"ULONG":0x4,
"ULONG_PTR":0x8,
"SIZE_T":0x4,
"NTSTATUS":0x4,
"DWORD":0x4,
"KPRIORITY":0x4,
"LARGE_INTEGER":0x8,
"ULONGLONG":0x8,
"ACCESS_MASK":0x4}
dataTypes_x86 = {
"PWSTR": 0x4,
"PVOID": 0x4,
"PWCHAR": 0x4,
"PSIZE_T": 0x4,
"HANDLE": 0x4,
"SIZE_T": 0x4,
"UCHAR": 0x1,
"USHORT": 0x2,
"BYTE": 0x1,
"ULONG": 0x4,
"ULONG_PTR": 0x4,
"NTSTATUS": 0x4,
"DWORD": 0x4,
"KPRIORITY": 0x4,
"LARGE_INTEGER": 0x8,
"ULONGLONG": 0x8,
"ACCESS_MASK": 0x4
}
specialVars = {
"GetCurrentProcess()":-1,
"MEM_COMMIT":hex(0x1000),
"MEM_RESERVE":hex(0x2000),
"MEM_RELEASE":hex(0x8000),
"PAGE_EXECUTE_READWRITE":hex(0x40),
"PAGE_READWRITE":hex(0x4),
"PAGE_READONLY":hex(0x2),
"PROCESS_ALL_ACCESS":hex(0x1fffff),
"THREAD_ALL_ACCESS":hex(0x001FFFFF),
"False":hex(0x0),
"True":hex(0x1),
"NTSTATUS":"NULL",
"NULL":hex(0x0)}