zoukankan      html  css  js  c++  java
  • 修改程序函数

     ea指地址

    DleteAll

    删除所有段,指令和注释

    MakeCoce(ea)

      在特定地址创建指令,成功返回指令长度,失败返回0

    区域指令分析

    AnalyzeArea(sEA, eEA):

    """Perform full analysis of the area

    @param sEA: starting linear address
    @param eEA: ending linear address (excluded)

    @return: 1-ok, 0-Ctrl-Break was pressed.

    MakeComm(ea,common)

    增加注释

    将未定义数据转换为特写类型

    MakeArray

    MakeStr

    MakeData

    MakeWord

    OpBinary(ea,n)

    Convert an operand of the item (instruction or data) to a binary number

    @param ea: linear address
    @param n: number of operand
    - 0 - the first operand
    - 1 - the second, third and all other operands
    - -1 - all operands

    @return: 1-ok, 0-failure

    @note: the data items use only the type of the first operand

    修改指定位置的指令,以字符串形式,ida不会检测指令,只是简单的替换

    SetManualInsn(ea, insn)

    获取手动修改的指令

    GetManualInsn(ea)

    修改调试内存数据,只对调试状态有效,成功返回1,失败0

    PatchDbgByte(ea,value)

    修改字节,修改地址数值为0x10

    PatchByte(ea,0x10)

    PatchByte

    PatchWord

    PatchDword

    PatchQword

    修改寄存器值

    SetRegEx(ea, reg, value, tag)

  • 相关阅读:
    BZOJ 3144 [Hnoi2013]切糕
    一场比赛:20170707
    BZOJ 2815 [ZJOI2012]灾难
    BZOJ 1088 [SCOI2005]扫雷Mine
    BZOJ 1052 [HAOI2007]覆盖问题
    BZOJ 3505 [Cqoi2014]数三角形
    BZOJ 2957 楼房重建
    BZOJ 2654 tree
    丁酉年六月十一ACM模拟赛
    BZOJ 3438 小M的作物 & BZOJ 1877 [SDOI2009]晨跑
  • 原文地址:https://www.cnblogs.com/fply/p/8503385.html
Copyright © 2011-2022 走看看