Skip to content

Instantly share code, notes, and snippets.

@SeeFlowerX
Last active January 5, 2023 11:22
Show Gist options
  • Save SeeFlowerX/3ca69557465c0ff50a75c89141e1d3e9 to your computer and use it in GitHub Desktop.
Save SeeFlowerX/3ca69557465c0ff50a75c89141e1d3e9 to your computer and use it in GitHub Desktop.
frida 获取 lr 信息
export function get_lr_info(ctx: Arm64CpuContext) {
let mm = new ModuleMap();
let lr_info = mm.find(ctx.lr);
if (lr_info == null) return "";
return ` ${lr_info.name}!${ctx.lr.sub(lr_info.base)}`;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment