1

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

user6903
  • 411
  • 4
  • 11

1 Answers1

2
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?

user6903
  • 411
  • 4
  • 11