Home > Software engineering >  Reverse engineer binary code in C programming (modify the memory address)
Reverse engineer binary code in C programming (modify the memory address)

Time:03-18

I am using ghex to modify the memory address. I want to change the call in main function instead of calling 1149 I want to call 1166 . What is the hex value for 0000000000001149 ? so I can replace it. Any idea?

0000000000001149 <aaa>:

1149:   55                      push   %rbp
114a:   48 89 e5                mov    %rsp,%rbp
114d:   48 8d 05 b0 0e 00 00    lea    0xeb0(%rip),%rax        # 2004 <_IO_stdin_used 0x4>
1154:   48 89 c7                mov    %rax,%rdi
1157:   e8 d4 fe ff ff          call   1030 <puts@plt>
115c:   bf 01 00 00 00          mov    $0x1,           
  •  Tags:  
  • c
  • Related