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):
        if arch == win32.ARCH_I386:
            MachineType = win32.IMAGE_FILE_MACHINE_I386
        elif arch == win32.ARCH_AMD64:
            MachineType = win32.IMAGE_FILE_MACHINE_AMD64
        elif arch == win32.ARCH_IA64:

src/w/i/winappdbg-1.5/winappdbg/system.py   winappdbg(Download)
 
        # Intel 64 bits.
        win32.ARCH_AMD64: set([
 
            # WinDbg bundled with the SDK, version 8.0.
            # Under WOW64 we'll treat AMD64 as I386.
            arch = win32.arch
            if arch == win32.ARCH_AMD64 and win32.bits == 32:
                arch = win32.ARCH_I386
 
            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
 

src/w/i/winappdbg-1.5/winappdbg/disasm.py   winappdbg(Download)
    supported = set((
        win32.ARCH_I386,
        win32.ARCH_AMD64,
    ))
 
    supported = set((
        win32.ARCH_I386,
        win32.ARCH_AMD64,
    ))
 
        self.__flag = {
            win32.ARCH_I386:  distorm3.Decode32Bits,
            win32.ARCH_AMD64: distorm3.Decode64Bits,
        }[self.arch]
 
    supported = set((
        win32.ARCH_I386,
        win32.ARCH_AMD64,
        win32.ARCH_THUMB,
        win32.ARCH_ARM,
            win32.ARCH_I386:
                (capstone.CS_ARCH_X86,   capstone.CS_MODE_32),
            win32.ARCH_AMD64:
                (capstone.CS_ARCH_X86,   capstone.CS_MODE_64),
            win32.ARCH_THUMB:

src/w/i/winappdbg-1.5/winappdbg/textio.py   winappdbg(Download)
            'cs=%(SegCs).4x  ss=%(SegSs).4x  ds=%(SegDs).4x  es=%(SegEs).4x  fs=%(SegFs).4x  gs=%(SegGs).4x             efl=%(EFlags).8x\n'
            ),
        win32.ARCH_AMD64 : (
            'rax=%(Rax).16x rbx=%(Rbx).16x rcx=%(Rcx).16x\n'
            'rdx=%(Rdx).16x rsi=%(Rsi).16x rdi=%(Rdi).16x\n'
                arch = win32.ARCH_I386
            elif 'Rax' in registers:
                arch = win32.ARCH_AMD64
            else:
                arch = 'Unknown'
            if arch == win32.ARCH_I386:
                spreg = 'esp'
            elif arch == win32.ARCH_AMD64:
                spreg = 'rsp'
            else:

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 == win32.ARCH_I386:
            return _Hook_i386(*argv, **argd)
        if arch == win32.ARCH_AMD64:
            return _Hook_amd64(*argv, **argd)
        return object.__new__(cls, *argv, **argd)