Skip to content

Can Ghidra show when a file was compiled? #2597

Answered by d-millar
NTOTL asked this question in Q&A
Discussion options

You must be logged in to vote

@NTOTL Sorry about that - was in a bit of a rush, could have been more explicit!

Given you mentioned you file was a .exe, let me use notepad.exe as an example. There are a couple of ways to do this. All give similar results, but you might as well know how to do all of them. :)

So the easiest thing to do is let Ghidra more or less do all the work for you. I'll start up Ghidra, launch the CodeBrowser tool, and do File->Import File-> directory walk to notepad.exe. The default import will be as a Portable Executable (PE). You can say yes to analyze if you want, but for your particular task you don't even have to do that.

The Listing view should now show notepad.exe based at 0x140000000. What …

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
4 replies
@d-millar
Comment options

@NTOTL
Comment options

@dev747368
Comment options

@NTOTL
Comment options

Comment options

You must be logged in to vote
1 reply
@d-millar
Comment options

Answer selected by NTOTL
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants