r2调试

r2 -d ./debug22

dcu main  // 执行到main函数 vvV    // 可视化界面,查看 第一个jne的地址 -》 lea rdx, [var+d0h]  dr rip=0xxxxxxxxx  // 修改eip指向  lea rdx, [var+d0h]  ds     // 单步 dcu 0xxxxxx  // 执行到 11c9下一行,这时候就出现 pwn1 dcu 0xxxxxx  // 执行到std:cout

寄存器:

Untitled

Untitled

r2命令

Untitled

Untitled

Untitled

按V之后按P切换

Untitled

posted @ 2021-12-07 13:36  梁静茹  阅读(95)  评论(0)    收藏  举报