Package winappdbg
[hide private]
[frames] | no frames]

Source Code for Package winappdbg

  1  # Copyright (c) 2009-2010, Mario Vilas 
  2  # All rights reserved. 
  3  # 
  4  # Redistribution and use in source and binary forms, with or without 
  5  # modification, are permitted provided that the following conditions are met: 
  6  # 
  7  #     * Redistributions of source code must retain the above copyright notice, 
  8  #       this list of conditions and the following disclaimer. 
  9  #     * Redistributions in binary form must reproduce the above copyright 
 10  #       notice,this list of conditions and the following disclaimer in the 
 11  #       documentation and/or other materials provided with the distribution. 
 12  #     * Neither the name of the copyright holder nor the names of its 
 13  #       contributors may be used to endorse or promote products derived from 
 14  #       this software without specific prior written permission. 
 15  # 
 16  # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 
 17  # AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 
 18  # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 
 19  # ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE 
 20  # LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 
 21  # CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 
 22  # SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 
 23  # INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 
 24  # CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 
 25  # ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 
 26  # POSSIBILITY OF SUCH DAMAGE. 
 27   
 28  """ 
 29  Windows application debugging engine for Python. 
 30   
 31  by Mario Vilas (mvilas at gmail.com) 
 32   
 33  Project: U{http://sourceforge.net/projects/winappdbg/} 
 34   
 35  Web:     U{http://winappdbg.sourceforge.net/} 
 36   
 37  Blog:    U{http://breakingcode.wordpress.com} 
 38   
 39  @group Debugging: 
 40      Debug, EventHandler, DebugLog 
 41   
 42  @group Instrumentation: 
 43      System, Process, Thread, Module, Window 
 44   
 45  @group Crash reporting: 
 46      Crash, CrashDump, CrashContainer, CrashTable, CrashTableMSSQL, 
 47      VolatileCrashContainer, DummyCrashContainer 
 48   
 49  @group Debug events: 
 50      Event, 
 51      NoEvent, 
 52      CreateProcessEvent, 
 53      CreateThreadEvent, 
 54      ExitProcessEvent, 
 55      ExitThreadEvent, 
 56      LoadDLLEvent, 
 57      UnloadDLLEvent, 
 58      OutputDebugStringEvent, 
 59      RIPEvent, 
 60      ExceptionEvent 
 61   
 62  @group Win32 API wrappers: 
 63      win32, Handle, ProcessHandle, ThreadHandle, FileHandle 
 64   
 65  @group Miscellaneous: 
 66      HexInput, HexOutput, HexDump, Table, Logger, 
 67      PathOperations, 
 68      MemoryAddresses, 
 69      CustomAddressIterator, 
 70      DataAddressIterator, 
 71      ImageAddressIterator, 
 72      MappedAddressIterator, 
 73      ExecutableAddressIterator, 
 74      ReadableAddressIterator, 
 75      WriteableAddressIterator, 
 76      ExecutableAndWriteableAddressIterator, 
 77      DebugRegister, 
 78      Regenerator 
 79   
 80  @type version: str 
 81  @var  version: This WinAppDbg release version. 
 82  """ 
 83   
 84  __revision__ = "$Id: __init__.py 764 2010-07-20 10:59:45Z qvasimodo $" 
 85   
 86  # List of all public symbols 
 87  __all__ =   [ 
 88                  # Library version 
 89                  'version', 
 90   
 91                  # from breakpoint import * 
 92  ##                'Breakpoint', 
 93  ##                'CodeBreakpoint', 
 94  ##                'PageBreakpoint', 
 95  ##                'HardwareBreakpoint', 
 96  ##                'Hook', 
 97  ##                'ApiHook', 
 98  ##                'BufferWatch', 
 99   
100                  # from crash import * 
101                  'Crash', 
102                  'CrashContainer', 
103                  'CrashTable', 
104                  'CrashTableMSSQL', 
105                  'VolatileCrashContainer', 
106                  'DummyCrashContainer', 
107   
108                  # from debug import * 
109                  'Debug', 
110   
111                  # from system import * 
112                  'Module', 
113                  'Thread', 
114                  'Window', 
115                  'Process', 
116                  'System', 
117   
118                  # from event import * 
119                  'EventHandler', 
120  ##                'EventFactory', 
121  ##                'EventDispatcher', 
122                  'Event', 
123  ##                'NoEvent', 
124                  'CreateProcessEvent', 
125                  'CreateThreadEvent', 
126                  'ExitProcessEvent', 
127                  'ExitThreadEvent', 
128                  'LoadDLLEvent', 
129                  'UnloadDLLEvent', 
130                  'OutputDebugStringEvent', 
131                  'RIPEvent', 
132                  'ExceptionEvent', 
133   
134                  # from textio import * 
135                  'HexDump', 
136                  'HexInput', 
137                  'HexOutput', 
138                  'Table', 
139                  'CrashDump', 
140                  'DebugLog', 
141                  'Logger', 
142   
143                  # from util import * 
144                  'PathOperations', 
145                  'MemoryAddresses', 
146                  'CustomAddressIterator', 
147                  'DataAddressIterator', 
148                  'ImageAddressIterator', 
149                  'MappedAddressIterator', 
150                  'ExecutableAddressIterator', 
151                  'ReadableAddressIterator', 
152                  'WriteableAddressIterator', 
153                  'ExecutableAndWriteableAddressIterator', 
154                  'DebugRegister', 
155  ##                'Regenerator', 
156   
157                  # import win32 
158                  'win32', 
159   
160                  # from win32 import Handle, ProcessHandle, ThreadHandle, FileHandle 
161                  'Handle', 
162                  'ProcessHandle', 
163                  'ThreadHandle', 
164                  'FileHandle', 
165              ] 
166   
167  # Import all public symbols 
168  from breakpoint import * 
169  from crash import * 
170  from debug import * 
171  from event import * 
172  from system import * 
173  from textio import * 
174  from util import * 
175  import win32 
176  from win32 import Handle, ProcessHandle, ThreadHandle, FileHandle 
177   
178  # Library version 
179  version = "Version 1.4" 
180