Gets the offset of an address, or gets the address of an offset
- Copy
FromGetOffset.py
into GHIDRA_PATH\Ghidra\Features\Python\ghidra_scripts - And that's pretty much it
I would recommend setting a key binding to launch the script.
To do that;
- Click on the window tab in the top left of the CodeBrowser
- Click on the Script Manager (4th to last option)
- Click on the filter text box and type "FromGetOffset"
- Right Click on the script and select "Assign Key Binding"
- Enter the key binding of your choice (I set it as SHIFT+F)
- Then click on "Ok"
Now whenever you want to open the FromGetOffset extention, click on a line in the listing tab, then enter the key binding chosen earlier, and choose what you want to do.