x64dbg / x64dbgpy

Automating x64dbg using Python, Snapshots:
https://ci.appveyor.com/project/mrexodia/x64dbg-python/build/artifacts
MIT License
1.47k stars 70 forks source link

Breakpoint callback hangs debugger if a call to debug.Run() is issued. #17

Closed havokeachday closed 6 years ago

havokeachday commented 6 years ago

The below code should cause a hang which requires forceful termination of x86dbg.

` import struct from ctypes import from x64dbgpy import from x64dbgpy.pluginsdk._scriptapi.debug import from x64dbgpy.pluginsdk._scriptapi.register import from x64dbgpy.pluginsdk._scriptapi.memory import *

from x64dbgpy._breakpoints import *

def imp_dump():

imp_num_addr = GetESP() + 0x14
imp_num = ReadDword(imp_num_addr)
print(data[imp_num])
Run()

Breakpoint.add(0x0041945B, imp_dump) # can be any address really. Run()

`