Vector35 / binaryninja-api

Public API, examples, documentation and issues for Binary Ninja
https://binary.ninja/
MIT License
927 stars 209 forks source link

Go to Address relative to image base #4391

Closed alexrp closed 1 year ago

alexrp commented 1 year ago

What is the feature you'd like to have? Today, Go to Address can either be absolute or relative to the current position. It would be nice if there was an option to go to an RVA (i.e. an offset relative to the image base).

Are any alternative solutions acceptable?

plafosse commented 1 year ago

You can do this using the built in variables, The goto dialog accepts a full language that supports

$start - Beginning of the BV $end - End of the BV - 1 $ - Current location [] - Dereference operations

This is all documented here: https://docs.binary.ninja/guide/index.html#navigating and here: https://api.binary.ninja/binaryninja.binaryview-module.html#binaryninja.binaryview.BinaryView.parse_expression