我有一个二进制文件,它从用户那里获取输入并使用check_value函数检查我们字符的每一位,该函数执行一些操作。感兴趣的函数的反汇编是:
.text:000000000005620B loc_5620B: ; CODE XREF: main+A1j
.text:000000000005620B movzx edi, byte ptr [rbx+rdx]
.text:000000000005620F mov rsi, [r8+rdx*8]
.text:0000000000056213 call check_value
.text:0000000000056218 inc rdx
.text:000000000005621B and ecx, eax
.text:000000000005621D cmp rdx, 3Bh <----**This condition**
.text:0000000000056221 jnz short loc_5620B
.text:0000000000056223 test cl, cl
.text:0000000000056225 lea rdi, aYouDidnTGetItM ; "You didn't get it, much sadness :("
.text:000000000005622C jz short loc_5623E
.text:000000000005622E lea rdi, aYouGotItCorrec ; "You got it! correct! awesome!"
.text:0000000000056235 call _puts
.text:000000000005623A xor eax, eax
.text:000000000005623C jmp short loc_56248
我所理解的是cmp指令是执行被转移的地方,我想做一个直接的蛮力。我如何使用gdb脚本或angr框架?