-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPyContext.py
46 lines (39 loc) · 958 Bytes
/
PyContext.py
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
#!/usr/bin/env python
########################################################################
#
# PyEmu: scriptable x86 emulator
#
# Cody Pierce - [email protected] - 2007
#
# License: None
#
########################################################################
'''
PyContext:
A simple class that provides a method for passing full context
information.
'''
class PyContext:
def __init__(self):
self.dr0 = 0x0
self.dr1 = 0x0
self.dr2 = 0x0
self.dr3 = 0x0
self.dr6 = 0x0
self.dr7 = 0x0
self.GS = 0x0
self.FS = 0x0
self.ES = 0x0
self.DS = 0x0
self.CS = 0x0
self.SS = 0x0
self.EAX = 0x0
self.ECX = 0x0
self.EDX = 0x0
self.EBX = 0x0
self.ESP = 0x0
self.EBP = 0x0
self.ESI = 0x0
self.EDI = 0x0
self.EFLAGS = 0x0
self.EIP = 0x0