Skip to content

Instantly share code, notes, and snippets.

@alexander-hanel
Created April 9, 2019 16:02
Show Gist options
  • Save alexander-hanel/c87fbcda6dcca5cc133af7e4572edf42 to your computer and use it in GitHub Desktop.
Save alexander-hanel/c87fbcda6dcca5cc133af7e4572edf42 to your computer and use it in GitHub Desktop.
rename function based off of comment in operand
def rrename():
func = idaapi.get_func(here()).startEA
idc.set_name(func, idc.get_cmt(idc.get_operand_value(here(),1), True) + "_", SN_CHECK)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment