** program './guess' loaded. entry point 0x40108b. 40108b: f3 0f 1e fa endbr64 40108f: 55 push rbp 401090: 48 89 e5 mov rbp, rsp 401093: 48 83 ec 10 sub rsp, 0x10 401097: ba 12 00 00 00 mov edx, 0x12 (sdb) break 0x4010de ** set a breakpoint at 0x4010de. (sdb) cont guess a number > 1 ** hit a breakpoint at 0x4010de. 4010de: 48 89 c7 mov rdi, rax 4010e1: e8 1a ff ff ff call 0x401000 4010e6: 85 c0 test eax, eax 4010e8: 75 1b jne 0x401105 4010ea: ba 06 00 00 00 mov edx, 6 (sdb) patch 0x4010e8 0x9090 2 ** patch memory at address 0x4010e8. (sdb) si 4010e1: e8 1a ff ff ff call 0x401000 4010e6: 85 c0 test eax, eax 4010e8: 90 nop 4010e9: 90 nop 4010ea: ba 06 00 00 00 mov edx, 6 (sdb) info break Num Address 0 0x4010de (sdb) delete 0 ** delete breakpoint 0. (sdb) break 0x4010ea ** set a breakpoint at 0x4010ea. (sdb) delete 0 ** breakpoint 0 does not exist. (sdb) info break Num Address 1 0x4010ea (sdb) cont ** hit a breakpoint at 0x4010ea. 4010ea: ba 06 00 00 00 mov edx, 6 4010ef: 48 8d 05 1f 0f 00 00 lea rax, [rip + 0xf1f] 4010f6: 48 89 c6 mov rsi, rax 4010f9: bf 01 00 00 00 mov edi, 1 4010fe: e8 25 00 00 00 call 0x401128 (sdb) patch 0x402015 0x4e49570a 4 ** patch memory at address 0x402015. (sdb) cont WIN ** the target program terminated.