ida.py 文件源码

python
阅读 28 收藏 0 点赞 0 评论 0

项目:lighthouse 作者: gaasedelen 项目源码 文件源码
def gui_rename_function(function_address):
    """
    Interactive rename of a function in the IDB.
    """
    original_name = get_function_name(function_address)

    # prompt the user for a new function name
    ok, new_name = prompt_string(
        "Please enter function name",
        "Rename Function",
        original_name
       )

    #
    # if the user clicked cancel, or the name they entered
    # is identical to the original, there's nothing to do
    #

    if not (ok or new_name != original_name):
        return

    # rename the function
    idaapi.set_name(function_address, new_name, idaapi.SN_NOCHECK)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号