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 that you have read and understand our privacy policy and code of conduct.

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