Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Verify 64 bit binary on windows

How can I verify that a .exe file is built for 64 bit on Windows ? I am used to Linux where I can simply use the 'file' command to see this.

like image 773
Zitrax Avatar asked Jun 06 '26 06:06

Zitrax


1 Answers

Take a look into the file using a HEX editor. There's a PE magic signature somewhere after the DOS stub, and the platform ID is close behind (some bytes later). For 64 bit builds, it is 0x8664 or so, which is quite easy to spot.

like image 54
Alexander Gessler Avatar answered Jun 09 '26 01:06

Alexander Gessler



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!