binaryninja-api icon indicating copy to clipboard operation
binaryninja-api copied to clipboard

allow modification of memory for segments not backed by files

Open psifertex opened this issue 7 years ago • 3 comments

Currently, it is not possible to modify memory unless it's backed by a file. It should be possible to arbitrary memory though. Requires a new ability to store arbitrary memory in the bndb among other changes.

psifertex avatar Jan 18 '18 02:01 psifertex

Yes please. I can’t believe there isn’t a ticket for this already haha. I’ve wanted this since I started implementing an LLIL emulator!

joshwatson avatar Jan 18 '18 02:01 joshwatson

Related to #1508

psifertex avatar Mar 24 '21 19:03 psifertex

Please, let's address this as it is a very important feature that makes BN almost useless when working with packers

patacca avatar Mar 30 '24 10:03 patacca

This capability is now provided with the new MemoryMap API. The MemoryMap itself is still under development with respect to other features, however the ability to provide persistent storage is functional and supported.

In the UI you can use the command palette action 'Load File at Address...' In Python you can use the add_memory_region method to pass bytes or a file.

view.memory_map.add_memory_region("rom", rom_base, b'\x90' * 4096)

Added in 4.1.5295-dev.

bpotchik avatar May 16 '24 15:05 bpotchik