Does anybody know how can I get the offset in an executable file from an address in #Ghidra (with Python or Java)?
Maybe @buherator ?
@buherator Yep. BTW, Ryan Kurtz already answered me:
program.getMemory().getAddressSourceInfo(addr).getFileOffset()
@joxean @buherator seems I bothered my ex-colleagues for this info a little too late!