Skip to content

Instantly share code, notes, and snippets.

@tmr232
Last active March 28, 2016 16:22
Show Gist options
  • Select an option

  • Save tmr232/054023c4fca5369ffdb2 to your computer and use it in GitHub Desktop.

Select an option

Save tmr232/054023c4fca5369ffdb2 to your computer and use it in GitHub Desktop.
Copy Windbg bp command from IDA
import os
import idaapi
import idautils
import clipboard
def copy_windbg_bp():
bp = 'bu @!"{}"+0x{:X}'.format(
os.path.splitext(idaapi.get_root_filename())[0],
idaapi.get_screen_ea() - idautils.peutils_t().imagebase
)
clipboard.copy(bp)
idaapi.add_hotkey('3', copy_windbg_bp)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment