By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,952 Members | 985 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,952 IT Pros & Developers. It's quick & easy.

How to kill a process by the description not its name

P: 5
Please help me! I'm trying to protect my program from an app called fiddler. How do I close it by the description? I would kill it by the name but someone could easily change it. Thanks.
May 25 '14 #1
Share this Question
Share on Google+
3 Replies

Expert 100+
P: 1,031
Am i correct in assuming that your application sends information over the network, and that you do not want anyone to see that?

Than your search will lead to no answer because there are more programs which can to the same as Fiddler does.
(like i.e.: Whireshark)
May 25 '14 #2

P: 299
You can just do it like this:

Expand|Select|Wrap|Line Numbers
  1.     For Each p As Process In Process.GetProcesses
  2.             Try
  3.                 Dim ProcessFile = FileVersionInfo.GetVersionInfo(p.MainModule.FileName)
  4.                 If ProcessFile.FileDescription.ToLower.Contains("YourStringHere") then
  5.             p.Kill()
  6.         End If
  7.             Catch ex As System.ComponentModel.Win32Exception
  8.                 'catch the exception here
  9.             End Try
  10.         Next
May 25 '14 #3

P: 8
why don't you include An SSL encryption ?? and set it up to ask for a specific Certification this way you can prevent fiddler attack ;)
May 26 '14 #4

Post your reply

Sign in to post your reply or Sign up for a free account.