Well, I would like to know if it is possible to retrieve information stored in an executable, such as a certificate of authentication, to be sure that exe tested corresponds to the file.
Well, I would like to know if it is possible to retrieve information stored in an executable, such as a certificate of authentication, to be sure that exe tested corresponds to the file.
A comparison of hash file would not ?
Exe is otherwise a simple binary file, it reads smoothly.
In fact, the file test may not be the same every time. It has the same name, but probably not the same size and content. So, I would have liked to read data to make sure that this is a "valid", in much the same way we read EXIF data of a JPEG photo for example. Whether to accept a picture taken with the camera X, then the file is considered valid.
And if not, what method do you use to read the file?
With a StreamReader or BinaryReader simply.
After than you have to go about the file structure to know where to retrieve information that may help you verify the validity of that file.
Are you trying to have an executable such as plugin architecture for your application, but wanted to do some checks before loading those. Then look at this link:
http://blogs.msdn.com/shawnfa/archiv...07/150378.aspx
Thank you for everything!
I think I can achieve my purpose with these informations.
Bookmarks