Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
When writing an IDA script, how to use IDC or IDAPython to get the file offset for a memory address?
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?
Required, but never shown