Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to Compare two exe files One built from the old code now and the existing exe that was built a few months ago?

Tags:

.net

I am looking to compare two exe files. I should ensure that the existing exe on the server is a product of the code I have now.

I am using

>dumpbin /rawdata oldfile.exe > oldfile.txt
>dumpbin /rawdata newfile.exe > newfile.txt
>fc /b oldfile.txt newfile.txt  //compare them like this
>windiff  oldfile.txt newfile.txt // or this 

I guess they should only differ by the timestamp. These are VB.net exes from visual studio 2003.

Any thoughts?

Thanks.

like image 428
schar Avatar asked Dec 22 '22 09:12

schar


1 Answers

If all you're looking to do is verify the binaries are identical, then you could use a utility like md5sum or sha1sum which will effectively hashes the binary. If the hashes for each binary are the same, then the chances are the files are identical.

like image 58
Chris J Avatar answered May 19 '23 18:05

Chris J