473,382 Members | 1,692 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,382 software developers and data experts.

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.
May 25 '14 #1
3 1454
Luuk
1,047 Expert 1GB
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
Luk3r
300 256MB
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
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

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

Similar topics

5
by: Brett | last post by:
How do I gracefully kill a process than restart it? The process Image Name is known. Thanks, Brett
4
by: iwdu15 | last post by:
hi, im been working on a process manager for awhile and i cant find anywhere how to kill a running process....any help would b awsome -- -iwdu15
3
by: Sehboo | last post by:
Hi, Is it possible that you can monitor your memory usage and kill some process when memory usage reaches 80% or so? I have an application which uses lot of memory and then system hangs, but...
4
by: drodrig | last post by:
Hi. I am trying to close/kill all processes that show visible windows on Windows XP. So far I've created a script that uses win32gui.EnumWindows to iterate through all windows, check for which...
2
by: eddie69 | last post by:
Hi, I am working in an application (VB 2005) that has a listview of all running processes and hastheability to close (kill) any active process. So far, I have been able to kill any process at...
0
by: vinitfichadia | last post by:
Hello friends, In my vb.net application i would like to kill the process using the application name i.e, i m dynamically opening grid data into excel inthe same window and excel filename is date,...
0
by: stef mientki | last post by:
hello, is there a library to kill a windows process by name ? thanks, Stef Mientki
5
by: Guillaume Dargaud | last post by:
Hello all, I can launch an external program using system() or the exec() family of calls. But I'm under the impression that I then can't kill that process using standard C functions. kill() is...
2
by: news.microsoft.com | last post by:
How can a VB program detect a kill process which was used to close it down. I have a routine that detects when a user exits the program and I can track the session times. But how can I detect when...
8
by: g3rmanpride21 | last post by:
I'm currently working with this piece of code: CheckedListBox1.Items.Clear() CheckedListBox1.DisplayMember = "ProcessName" Dim p As Process For Each p In Process.GetProcesses...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.