Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(0)  |  Call(0)  |  Derive(0)  |  Import(0)

src/w/i/winappdbg-1.5/winappdbg/thread.py   winappdbg(Download)
                    # 32 bit debugger attached to 64 bit process.
                    # XXX only i386/AMD64 is supported in this particular case
                    if win32.arch not in (win32.ARCH_I386, win32.ARCH_AMD64):
                        raise NotImplementedError()
                    if ContextFlags is not None:
    #       during module import, also would support mixing 32 and 64 bits
 
    if win32.arch in (win32.ARCH_I386, win32.ARCH_AMD64):
 
        def get_pc(self):
#------------------------------------------------------------------------------
 
    if win32.arch in (win32.ARCH_I386, win32.ARCH_AMD64):
 
        class Flags (object):
            This method is only supported in 32 bits versions of Windows.
        """
        if win32.arch != win32.ARCH_I386:
            raise NotImplementedError(
                "SEH chain parsing is only supported in 32-bit Windows.")
            This method is only supported in 32 bits versions of Windows.
        """
        if win32.arch != win32.ARCH_I386:
            raise NotImplementedError(
                "SEH chain parsing is only supported in 32-bit Windows.")

src/w/i/winappdbg-1.5/winappdbg/system.py   winappdbg(Download)
 
        # Intel 32 bits.
        win32.ARCH_I386 : set([
 
            # WinDbg bundled with the SDK, version 8.0.
            arch = win32.arch
            if arch == win32.ARCH_AMD64 and win32.bits == 32:
                arch = win32.ARCH_I386
 
            # Check if the architecture is supported.
            It works on my machine, but your mileage may vary.
        """
        if win32.arch not in (win32.ARCH_I386, win32.ARCH_AMD64):
            raise NotImplementedError(
                "MSR reading is only supported on i386 or amd64 processors.")
            It works on my machine, but your mileage may vary.
        """
        if win32.arch not in (win32.ARCH_I386, win32.ARCH_AMD64):
            raise NotImplementedError(
                "MSR writing is only supported on i386 or amd64 processors.")

src/w/i/winappdbg-1.5/winappdbg/process.py   winappdbg(Download)
        # In WOW64, "amd64" becomes "i386".
        if win32.arch == win32.ARCH_AMD64:
            return win32.ARCH_I386
 
        # We don't know the translation for other architectures.
        # Old method, using shellcode.
        if procname:
            if self.get_arch() != win32.ARCH_I386:
                raise NotImplementedError()
            dllname = str(dllname)

src/w/i/winappdbg-1.5/winappdbg/disasm.py   winappdbg(Download)
 
    supported = set((
        win32.ARCH_I386,
        win32.ARCH_AMD64,
    ))
        Instruction.EIP = buffer_ptr
        Instruction.SecurityBlock = buffer_ptr + len(code)
        if self.arch == win32.ARCH_I386:
            Instruction.Archi = 0
        else:
 
    supported = set((
        win32.ARCH_I386,
        win32.ARCH_AMD64,
    ))
        # Load the bits flag.
        self.__flag = {
            win32.ARCH_I386:  distorm3.Decode32Bits,
            win32.ARCH_AMD64: distorm3.Decode64Bits,
        }[self.arch]
 
    supported = set((
        win32.ARCH_I386,
    ))
 

src/w/i/winappdbg-1.5/winappdbg/textio.py   winappdbg(Download)
    # Templates for the dump_registers method.
    reg_template = {
        win32.ARCH_I386 : (
            'eax=%(Eax).8x ebx=%(Ebx).8x ecx=%(Ecx).8x edx=%(Edx).8x esi=%(Esi).8x edi=%(Edi).8x\n'
            'eip=%(Eip).8x esp=%(Esp).8x ebp=%(Ebp).8x %(efl_dump)s\n'
        if arch is None:
            if 'Eax' in registers:
                arch = win32.ARCH_I386
            elif 'Rax' in registers:
                arch = win32.ARCH_AMD64
        result = ''
        if pointers:
            if arch == win32.ARCH_I386:
                spreg = 'esp'
            elif arch == win32.ARCH_AMD64:

src/w/i/winappdbg-1.5/winappdbg/breakpoint.py   winappdbg(Download)
    typeName = 'code breakpoint'
 
    if win32.arch in (win32.ARCH_I386, win32.ARCH_AMD64):
        bpInstruction = '\xCC'      # int 3
 
        @param action: (Optional) Action callback function.
        """
        if win32.arch not in (win32.ARCH_I386, win32.ARCH_AMD64):
            msg = "Code breakpoints not supported for %s" % win32.arch
            raise NotImplementedError(msg)
    def enable(self, aProcess, aThread):
        if win32.arch not in (win32.ARCH_I386, win32.ARCH_AMD64):
            msg = "Only one-shot page breakpoints are supported for %s"
            raise NotImplementedError(msg % win32.arch)
        if not self.is_enabled() and not self.is_one_shot():
        @param action: (Optional) Action callback function.
        """
        if win32.arch not in (win32.ARCH_I386, win32.ARCH_AMD64):
            msg = "Hardware breakpoints not supported for %s" % win32.arch
            raise NotImplementedError(msg)
        if arch is None:
            arch = win32.arch
        if arch == win32.ARCH_I386:
            return _Hook_i386(*argv, **argd)
        if arch == win32.ARCH_AMD64: