2
votes
Changing the jne to je instruction causes program to generate error
If you want to swap a conditional jump you can use the wao command like this: r2 -qc 'wao recj @ 0x1343' -w YOURPROGRAM.
But you can also use:
wx 74@0x1343
wai jne 0x1351@0x1343
woa 01@!1
(there are ...
2
votes
Under what circumstances relative to instr rip+offsets to .rdata data may not match?
It has to do with how the sections are loaded into memory versus how they are laid out in the file. For locations within the same section, the in-memory distance versus the in-file distance will be ...
1
vote
Patching a B(ranch) causes segfault in ARMv7 binary, while the same patch (with JMP) works on x64 binary
Do you know the difference between jmp (B) and call (BL)?
Read about return address, which is saved in the LR register (ARM) for 'BL'.
1
vote
Hex editing an IP address of a different length
IP addresses can also be represented as a decimal number, for example:
52.90.24.115 == 878319731
This examples saves 3 bytes, maybe give this method a try and pad with 0x20.
There are many sites to ...
1
vote
Convert Mach-O VM Address To File Offset
file_offset= address - segment.address + segment.offset + fat_arch.offset
If does not contain Fat headers then fat_arch.offset = 0
Check if fat: otool -fh or lipo -detailed_info
Architectures in the ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
patching × 136ida × 29
windows × 20
disassembly × 16
arm × 14
assembly × 11
ollydbg × 10
x86 × 10
patch-reversing × 9
hex × 9
elf × 8
binary-editing × 8
x64dbg × 7
binary × 7
radare2 × 6
binary-analysis × 5
android × 5
pe × 5
dll × 5
java × 5
executable × 5
debugging × 4
c++ × 4
memory × 4
c# × 4