scriptcmd
在正在运行的脚本上下文中执行命令。
参数
与其他命令不同,此命令将 scriptcmd
之后的所有内容直接转发到命令处理器。
For example scriptcmd add rax, 0x1245
will execute the command add rax, 0x1234
.
结果
此命令不设置任何结果变量。
example
This command can be used in combination with SetBreakpointCommand to execute scripts on breakpoint callbacks:
fn_addr = module.dll:$0x1234 // module.dll RVA 0x1234
bp fn_addr
SetBreakpointCommand fn_addr, "scriptcmd call mycallback"
// make sure the script is not unloaded
mycallback:
log "fn({arg.get(0)}, {arg.get(1)})"
ret