How to kill a process by the description not its name

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • gbello97
    New Member
    • May 2014
    • 5

    How to kill a process by the description not its name

    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.
  • Luuk
    Recognized Expert Top Contributor
    • Mar 2012
    • 1043

    #2
    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)

    Comment

    • Luk3r
      Contributor
      • Jan 2014
      • 300

      #3
      You can just do it like this:

      Code:
      	For Each p As Process In Process.GetProcesses
                  Try
                      Dim ProcessFile = FileVersionInfo.GetVersionInfo(p.MainModule.FileName)
                      If ProcessFile.FileDescription.ToLower.Contains("YourStringHere") then
      			p.Kill()
      		End If
                  Catch ex As System.ComponentModel.Win32Exception
                      'catch the exception here
                  End Try
              Next

      Comment

      • Ghost0s
        New Member
        • May 2014
        • 8

        #4
        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 ;)

        Comment

        Working...