When writing an IDA script, how to use IDC or IDAPython to get the file offset for a memory address?
1 Answer
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?