6

I'm using IDA Pro to disassemble/modify a PE file. How can I get the file offset in the '.exe' where a specific data/instruction resides. Or how can I get the file offset which is the source of a virtual address?

2

2 Answers 2

10

At the bottom left of the IDA View, you'll see the location of the cursor, as file offset (red) as well as virtual location (blue).

(Underlines by me, not by Ida).

enter image description here

2
  • 1
    Do you also know how can I copy it into clipboard? Commented Feb 13, 2015 at 21:32
  • 1
    What if it gives me this? Commented Apr 6, 2019 at 23:00
4

To find it using IDAPython:

ida_loader.get_fileregion_offset(ea) 

where "ea" is your virtual offset like 0x400000.

1

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.