Last active
March 28, 2016 16:22
-
-
Save tmr232/054023c4fca5369ffdb2 to your computer and use it in GitHub Desktop.
Copy Windbg bp command from IDA
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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