473,231 Members | 1,553 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,231 software developers and data experts.

How to verify Exe or Dll files?

yxq
Hello,
I want to verify the digital signature of EXE or DLL file, in order to know
if they published by Microsoft, like the software "Process Explorer",
download link is below
http://www.microsoft.com/technet/sys...sExplorer.mspx

Select a process, view Properties/Image, click "verify" button to view if
the file has been verfied.

I have searched internet, find the API WinVerifyTrust and some C++ code(link
below), can anyone tell how use WinVerifyTrust in VB.NET?

http://www.derkeiler.com/Newsgroups/.../msg00020.html

Thank you
Steven
Mar 22 '07 #1
2 3149
Dim FVInfo As FileVersionInfo = FileVersionInfo.GetVersionInfo(Path and
Filename)
"yxq" <ga***@163.netwrote in message
news:en**************@TK2MSFTNGP03.phx.gbl...
Hello,
I want to verify the digital signature of EXE or DLL file, in order to
know if they published by Microsoft, like the software "Process Explorer",
download link is below
http://www.microsoft.com/technet/sys...sExplorer.mspx

Select a process, view Properties/Image, click "verify" button to view if
the file has been verfied.

I have searched internet, find the API WinVerifyTrust and some C++
code(link below), can anyone tell how use WinVerifyTrust in VB.NET?

http://www.derkeiler.com/Newsgroups/.../msg00020.html

Thank you
Steven

Mar 23 '07 #2
yxq
Thank you, but your code only get file Version info, i want to get the info
of digital signature.

"Richard T. Edwards" <re********@hotmail.com>
??????:%2****************@TK2MSFTNGP03.phx.gbl...
Dim FVInfo As FileVersionInfo = FileVersionInfo.GetVersionInfo(Path and
Filename)
"yxq" <ga***@163.netwrote in message
news:en**************@TK2MSFTNGP03.phx.gbl...
>Hello,
I want to verify the digital signature of EXE or DLL file, in order to
know if they published by Microsoft, like the software "Process
Explorer", download link is below
http://www.microsoft.com/technet/sys...sExplorer.mspx

Select a process, view Properties/Image, click "verify" button to view if
the file has been verfied.

I have searched internet, find the API WinVerifyTrust and some C++
code(link below), can anyone tell how use WinVerifyTrust in VB.NET?

http://www.derkeiler.com/Newsgroups/.../msg00020.html

Thank you
Steven



Mar 24 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: I | last post by:
How can I verify DSA sign in php? Please send some example (I have tree files: data, sign and public DSA key in PEM format). Thanks Jaromir Ocelka
2
by: Vilmar Brazão de Oliveira | last post by:
Hi, How verify type or extension of file using ASPUPLOAD? I check documentation, but I didn't find anything else yet. thanks, -- ««««««««»»»»»»»»»»»»»» Vlmar Brazão de Oliveira...
23
by: Han | last post by:
Our app runs on end-users machines (apache2.x + php5). At this moment it is quite easy for someone (who has access to the console) to insert a couple lines of php code to steal sensitive info. ...
2
by: Andy Chen | last post by:
Hi, I have to verify a lot of installation packages which are digital signed. You can verify a file on the property sheet, but I am working on southands of files. I am planning to create a tool to...
1
by: Lynn | last post by:
Hi, I am copying files and sub folders from one directory to another directory. does anyone have the code to verify if the copying is completed successfully? thanks
14
by: =?Utf-8?B?U2FtdWVs?= | last post by:
Hi, I have a web app that allows others to upload files, and the problem is that if I allow users to upload image files, fake image can be uploaded and cause XSS issues. In the app, I do...
1
by: Hamish Moffatt | last post by:
Hi, I'm fetching some files over HTTPS from Python and I want to verify the server certificate. (Not just the name etc provided in certificate.) How can I get access to this information? ...
0
by: makinha | last post by:
Hello All, I can use WebClient.DownloadFile Method to download target file from the website, like WebClient.DownloadFile("http://www.abc.com/a.pdf", "D:\a.pdf") but how can I verify the...
0
by: Samuel.cyprian | last post by:
Hi guys, Do anyone of you know how to verify a signature of an executable file in C#? I would rather like to use a .net namespace instead of inporting of dlls. Thanks /SC
0
by: VivesProcSPL | last post by:
Obviously, one of the original purposes of SQL is to make data query processing easy. The language uses many English-like terms and syntax in an effort to make it easy to learn, particularly for...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 3 Jan 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). For other local times, please check World Time Buddy In...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.