When writing an IDA script, how to use IDC or IDAPython to get the file offset for a memory address?

1 Answer 1

offset = idaapi.get_fileregion_offset(ea)
ea = idaapi.get_fileregion_ea(offset)

ref:How to extract the input file offset of a byte in idapython?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.