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 Windows application debugging engine for Python.
33
34 by Mario Vilas (mvilas at gmail.com)
35
36 Project: U{http://sourceforge.net/projects/winappdbg/}
37
38 Web: U{http://winappdbg.sourceforge.net/}
39
40 Blog: U{http://breakingcode.wordpress.com}
41
42 @group Debugging:
43 Debug, EventHandler, EventSift, DebugLog
44
45 @group Instrumentation:
46 System, Process, Thread, Module, Window, Registry
47
48 @group Disassemblers:
49 Disassembler,
50 BeaEngine, DistormEngine, PyDasmEngine
51
52 @group Crash reporting:
53 Crash, CrashDump, CrashDAO, CrashDictionary
54
55 @group Memory search:
56 Search,
57 Pattern,
58 BytePattern,
59 TextPattern,
60 RegExpPattern,
61 HexPattern
62
63 @group Debug events:
64 Event,
65 NoEvent,
66 CreateProcessEvent,
67 CreateThreadEvent,
68 ExitProcessEvent,
69 ExitThreadEvent,
70 LoadDLLEvent,
71 UnloadDLLEvent,
72 OutputDebugStringEvent,
73 RIPEvent,
74 ExceptionEvent
75
76 @group Win32 API wrappers:
77 win32, Handle, ProcessHandle, ThreadHandle, FileHandle
78
79 @group Helpers:
80 HexInput, HexOutput, HexDump, Color, Table, Logger,
81 PathOperations,
82 MemoryAddresses,
83 CustomAddressIterator,
84 DataAddressIterator,
85 ImageAddressIterator,
86 MappedAddressIterator,
87 ExecutableAddressIterator,
88 ReadableAddressIterator,
89 WriteableAddressIterator,
90 ExecutableAndWriteableAddressIterator,
91 DebugRegister,
92 Regenerator
93
94 @group Warnings:
95 MixedBitsWarning, BreakpointWarning, BreakpointCallbackWarning,
96 EventCallbackWarning, DebugSymbolsWarning, CrashWarning
97
98 @group Deprecated classes:
99 CrashContainer, CrashTable, CrashTableMSSQL,
100 VolatileCrashContainer, DummyCrashContainer
101
102 @type version_number: float
103 @var version_number: This WinAppDbg major and minor version,
104 as a floating point number. Use this for compatibility checking.
105
106 @type version: str
107 @var version: This WinAppDbg release version,
108 as a printable string. Use this to show to the user.
109
110 @undocumented: plugins
111 """
112
113 __revision__ = "$Id: __init__.py 1303 2013-12-20 12:14:40Z qvasimodo $"
114
115
116 __all__ = [
117
118 'version',
119 'version_number',
120
121
122
123
124
125
126
127
128
129 'BreakpointWarning',
130 'BreakpointCallbackWarning',
131
132
133 'Crash',
134 'CrashWarning',
135 'CrashDictionary',
136 'CrashContainer',
137 'CrashTable',
138 'CrashTableMSSQL',
139 'VolatileCrashContainer',
140 'DummyCrashContainer',
141
142
143 'Debug',
144 'MixedBitsWarning',
145
146
147 'Disassembler',
148 'BeaEngine',
149 'DistormEngine',
150 'PyDasmEngine',
151
152
153 'EventHandler',
154 'EventSift',
155
156
157 'EventCallbackWarning',
158 'Event',
159
160 'CreateProcessEvent',
161 'CreateThreadEvent',
162 'ExitProcessEvent',
163 'ExitThreadEvent',
164 'LoadDLLEvent',
165 'UnloadDLLEvent',
166 'OutputDebugStringEvent',
167 'RIPEvent',
168 'ExceptionEvent',
169
170
171
172
173
174 'Module',
175 'DebugSymbolsWarning',
176
177
178 'Process',
179
180
181 'System',
182
183
184 'Search',
185 'Pattern',
186 'BytePattern',
187 'TextPattern',
188 'RegExpPattern',
189 'HexPattern',
190
191
192 'Registry',
193
194
195 'HexDump',
196 'HexInput',
197 'HexOutput',
198 'Color',
199 'Table',
200 'CrashDump',
201 'DebugLog',
202 'Logger',
203
204
205 'Thread',
206
207
208 'PathOperations',
209 'MemoryAddresses',
210 'CustomAddressIterator',
211 'DataAddressIterator',
212 'ImageAddressIterator',
213 'MappedAddressIterator',
214 'ExecutableAddressIterator',
215 'ReadableAddressIterator',
216 'WriteableAddressIterator',
217 'ExecutableAndWriteableAddressIterator',
218 'DebugRegister',
219
220
221 'Window',
222
223
224 'win32',
225
226
227 'Handle',
228 'ProcessHandle',
229 'ThreadHandle',
230 'FileHandle',
231 ]
232
233
234 from breakpoint import *
235 from crash import *
236 from debug import *
237 from disasm import *
238 from event import *
239 from interactive import *
240 from module import *
241 from process import *
242 from registry import *
243 from system import *
244 from search import *
245 from textio import *
246 from thread import *
247 from util import *
248 from window import *
249
250 import win32
251 from win32 import Handle, ProcessHandle, ThreadHandle, FileHandle
252
253 try:
254 from sql import *
255 __all__.append('CrashDAO')
256 except ImportError:
257 import warnings
258 warnings.warn("No SQL database support present (missing dependencies?)",
259 ImportWarning)
260
261
262 version_number = 1.5
263 version = "Version %s" % version_number
264