Process Clean

AstriMc

Member
Reputation
0
Hello i am trying to figure it out how to make a little tool that with one Click it Closes down all Unnecessary processes.

so i am doing this but is not working please help

[vb] Imports System.Diagnostics
Dim proc As Process
ListBox1.Items.Clear()
For Each proc In Process.GetProcesses
ListBox1.Items.Add(proc.ProcessName)
Next [/vb]

[vb] If Process.CloseMainWindow Then
'\\ Process closed itself
End If [/vb]

[vb]Process.Kill [/vb]

but this is not working i am not sure what am i doing wrong....
 
Have you got any errors?

Or is it just not doing anything?
 
BleepyEvans said:
Have you got any errors?

Or is it just not doing anything?

on Vb i only open listBox1
"then on that i put the code" but does not give any error but does not show process.

what i really want this to do is this:

1. create an program.exe when opened you get this message:

Process Cleanup Will stop Non-Essentials Process on your System,,

Please Save any unsaved Work and then clock OK button below.

2. After Clicked OK

Process Cleanup has Stopped xx Non-Essentials processes on your system.
Plesae Read the log file for complete details.

3. It will create and name.text on your desktop THIS will be the LOG what it killed

ON LOG

*****************************************************************************
* Copyright © 2011 yousitename.com. All rights reserved *
*****************************************************************************
Process Cleanup Log


No. Process Name Status
-- ------------ -------
1 atiesrxx.exe Stopped
2 spoolsv.exe Stopped
3 AppleMobileDeviceService.exe Stopped
4 mDNSResponder.exe Stopped
5 atieclxx.exe Stopped
6 LMIGuardianSvc.exe Stopped
7 ramaint.exe Stopped
8 LogMeIn.exe Stopped
9 httpd.exe Stopped
10 MSCamS64.exe Stopped
11 ccsvchst.exe Error (0x00000005)
12 dwm.exe Stopped
13 taskhost.exe Stopped
14 TeamViewer_Service.exe Stopped
15 WLIDSVC.EXE Stopped
16 httpd.exe Stopped
17 WLIDSVCM.EXE Stopped
18 TeamViewer.exe Stopped
19 ccsvchst.exe Error (0x00000005)
20 mvraidsvc.exe Stopped
21 LogMeInSystray.exe Stopped
22 msnmsgr.exe Stopped
23 sidebar.exe Stopped
24 iTunesHelper.exe Stopped
25 SearchIndexer.exe Stopped
26 iPodService.exe Stopped
27 wmpnetwk.exe Stopped
28 IntuitUpdateService.exe Stopped
29 NASvc.exe Stopped
30 wlcomm.exe Stopped
31 uTorrent.exe Stopped
32 Skype.exe Stopped
33 skypePM.exe Stopped
34 audiodg.exe Error (0x00000005)
35 FreeCall.exe Stopped
36 firefox.exe Stopped
37 devenv.exe Stopped
38 WindowsApplication1.vshost.exe Stopped
39 IntelliTrace.exe Stopped
40 conhost.exe Stopped

Summary: Process Cleanup has stopped 37 processes.
Failed to kill 3 processes
*****************************************************************************
 
Try this, with 1 listbox and 2 buttons. Button 1 loads the process, check th process you want to kill then press button 2.

[vb]Imports System.Diagnostics
Public Class Form1

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim process As Process
ListBox1.Items.Clear()
For Each process In process.GetProcesses
ListBox1.Items.Add(process.ProcessName)
Next
End Sub

Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
Dim ProcName As String = ListBox1.SelectedItem.ToString
For Each p In process.GetProcesses
If p.ProcessName = ProcName Then
p.Kill()
Else
End If
Next
End Sub
End Class[/vb]




Sorry just updated the code
 
BleepyEvans said:
Try this, with 1 listbox and 2 buttons. Button 1 loads the process, check th process you want to kill then press button 2.

[vb]Imports System.Diagnostics
Public Class Form1

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim process As Process
ListBox1.Items.Clear()
For Each process In process.GetProcesses
ListBox1.Items.Add(process.ProcessName)
Next
End Sub

Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
Dim ProcName As String = ListBox1.SelectedItem.ToString
For Each p In process.GetProcesses
If p.ProcessName = ProcName Then
p.Kill()
Else
End If
Next
End Sub
End Class[/vb]




Sorry just updated the code



Thank you here is a Screen Shot i test it it work

2h5l8wi.png


now is it possible to Select Multi Process to kill at same time or to kill all
Non-Essentials once..

thanks.
 
Got a question for you, who determines the unnecessary processes? How do you know if they are unnecessary or not?
 
Well its just knowledge. Like most programs I have on my computer I know the process name, so if I close it and it doesnt close correctly, I can just kill the process.




In the listbox properties change SelectionMode from One to MultiExtended.
 
Factor8â„¢ said:
Got a question for you, who determines the unnecessary processes? How do you know if they are unnecessary or not?

if you have Virus in you computer that will take over of you computer and 100% of the time its in a process that does that so if you can kill all other non System you will kill that virus so you can run other tools to clean it up.
 
I see, but the chances of the program actually recognising if the process is taking system resources is kinda low.

Try searching google, but I doubt you will find it.

You can make a pre-made list of common unused processes and kill them, but you wont beable to identify them from system to system.
 
So it basically kills any process that is not classified as a system process?
 
Factor8â„¢ said:
So it basically kills any process that is not classified as a system process?

i am not sure 100% my self how does it work but i do have that kind of tool its not my tool so that's why i am making my own.. but if you guys can figure it out i can send you the .exe and you can see what exactly does.
 
astrimc said:
... i can send you the .exe and you can see what exactly does.

Okay. Please make sure that the .exe doesnt contain any viruses, as this would be a breach our forum rules.
 
He was only being cautious because you spoke about sending the .exe. As Factor comes from the hacking comunity he will be very experienced with people sending executables around that could possibly infected.

He was only saying dont be stupid and try and infect us. He wasnt calling your idea stupid. Just that if you do try and infect other members on the forum there will be serious concequences. Factor8's job is to make sure that people dont make the rules and he was just reminding ou of them. But I know your not going to do such thing.

All posts unreleated to the main thread have been reviewed.




As for this program that detectes unneeded system processes, please could you link us to an offical download page or something so we can see exactly how the program works.

Thankyou
 
BleepyEvans said:
He was only being cautious because you spoke about sending the .exe. As Factor comes from the hacking comunity he will be very experienced with people sending executables around that could possibly infected.

He was only saying dont be stupid and try and infect us. He wasnt calling your idea stupid. Just that if you do try and infect other members on the forum there will be serious concequences. Factor8's job is to make sure that people dont make the rules and he was just reminding ou of them. But I know your not going to do such thing.

All posts unreleated to the main thread have been reviewed.




As for this program that detectes unneeded system processes, please could you link us to an offical download page or something so we can see exactly how the program works.

Thankyou



Bleepy thank you for making this clear to me, and i appreciate your help and the staff/

as for that program i talked about that .exe program here is the link please take a look and see if you can help me what function is it using..

DOWNLOAD HERE

thank you..
 
Antivirus results
AhnLab-V3 - 2011.05.08.00 - 2011.05.07 - -
AntiVir - 7.11.7.176 - 2011.05.06 - -
Antiy-AVL - 2.0.3.7 - 2011.05.08 - -
Avast - 4.8.1351.0 - 2011.05.08 - -
Avast5 - 5.0.677.0 - 2011.05.08 - -
AVG - 10.0.0.1190 - 2011.05.08 - -
BitDefender - 7.2 - 2011.05.08 - -
CAT-QuickHeal - 11.00 - 2011.05.08 - -
ClamAV - 0.97.0.0 - 2011.05.07 - -
Commtouch - 5.3.2.6 - 2011.05.07 - -
Comodo - 8627 - 2011.05.08 - -
DrWeb - 5.0.2.03300 - 2011.05.08 - -
eSafe - 7.0.17.0 - 2011.05.05 - -
eTrust-Vet - 36.1.8312 - 2011.05.06 - -
F-Prot - 4.6.2.117 - 2011.05.08 - -
F-Secure - 9.0.16440.0 - 2011.05.08 - -
Fortinet - 4.2.257.0 - 2011.05.08 - -
GData - 22 - 2011.05.08 - -
Ikarus - T3.1.1.103.0 - 2011.05.08 - -
Jiangmin - 13.0.900 - 2011.05.05 - -
K7AntiVirus - 9.102.4584 - 2011.05.06 - -
Kaspersky - 9.0.0.837 - 2011.05.08 - -
McAfee - 5.400.0.1158 - 2011.05.08 - -
McAfee-GW-Edition - 2010.1D - 2011.05.07 - -
Microsoft - 1.6802 - 2011.05.08 - -
NOD32 - 6104 - 2011.05.08 - -
Norman - 6.07.07 - 2011.05.07 - -
Panda - 10.0.3.5 - 2011.05.08 - -
PCTools - 7.0.3.5 - 2011.05.06 - -
Prevx - 3.0 - 2011.05.08 - -
Rising - 23.56.06.05 - 2011.05.08 - -
Sophos - 4.65.0 - 2011.05.08 - -
SUPERAntiSpyware - 4.40.0.1006 - 2011.05.08 - -
Symantec - 20101.3.2.89 - 2011.05.08 - -
TheHacker - 6.7.0.1.191 - 2011.05.08 - -
TrendMicro - 9.200.0.1012 - 2011.05.08 - -
TrendMicro-HouseCall - 9.200.0.1012 - 2011.05.08 - -
VBA32 - 3.12.16.0 - 2011.05.08 - -
VIPRE - 9223 - 2011.05.08 - -
ViRobot - 2011.5.7.4450 - 2011.05.08 - -
VirusBuster - 13.6.343.0 - 2011.05.08 - -
File info:
MD5: d38d75fb72d0d3dbe0d4bc1e0ebb730b
SHA1: 8b74f3438000f2a428b8aa6d1ce2753d8983165b
SHA256: a01191d9a327818a65b0d3d56796845f32f034e611799cd9efcd7162f855c02f
File size: 200704 bytes
Scan date: 2011-05-08 15:06:49 (UTC)

-

Personally I dont like this program at all. It basically just kills every non system process. So my AntiVirus went down, my firewall went down, my Mouse drivers, keyboard drivers and headphone drivers are down. I had to wait a few minutes for my actuall computer to let me have control again.

I think you'd be much better putting the processes into a checklist box and letting the user choose which processes they want to kill or not.
 
BleepyEvans said:
Antivirus results
AhnLab-V3 - 2011.05.08.00 - 2011.05.07 - -
AntiVir - 7.11.7.176 - 2011.05.06 - -
Antiy-AVL - 2.0.3.7 - 2011.05.08 - -
Avast - 4.8.1351.0 - 2011.05.08 - -
Avast5 - 5.0.677.0 - 2011.05.08 - -
AVG - 10.0.0.1190 - 2011.05.08 - -
BitDefender - 7.2 - 2011.05.08 - -
CAT-QuickHeal - 11.00 - 2011.05.08 - -
ClamAV - 0.97.0.0 - 2011.05.07 - -
Commtouch - 5.3.2.6 - 2011.05.07 - -
Comodo - 8627 - 2011.05.08 - -
DrWeb - 5.0.2.03300 - 2011.05.08 - -
eSafe - 7.0.17.0 - 2011.05.05 - -
eTrust-Vet - 36.1.8312 - 2011.05.06 - -
F-Prot - 4.6.2.117 - 2011.05.08 - -
F-Secure - 9.0.16440.0 - 2011.05.08 - -
Fortinet - 4.2.257.0 - 2011.05.08 - -
GData - 22 - 2011.05.08 - -
Ikarus - T3.1.1.103.0 - 2011.05.08 - -
Jiangmin - 13.0.900 - 2011.05.05 - -
K7AntiVirus - 9.102.4584 - 2011.05.06 - -
Kaspersky - 9.0.0.837 - 2011.05.08 - -
McAfee - 5.400.0.1158 - 2011.05.08 - -
McAfee-GW-Edition - 2010.1D - 2011.05.07 - -
Microsoft - 1.6802 - 2011.05.08 - -
NOD32 - 6104 - 2011.05.08 - -
Norman - 6.07.07 - 2011.05.07 - -
Panda - 10.0.3.5 - 2011.05.08 - -
PCTools - 7.0.3.5 - 2011.05.06 - -
Prevx - 3.0 - 2011.05.08 - -
Rising - 23.56.06.05 - 2011.05.08 - -
Sophos - 4.65.0 - 2011.05.08 - -
SUPERAntiSpyware - 4.40.0.1006 - 2011.05.08 - -
Symantec - 20101.3.2.89 - 2011.05.08 - -
TheHacker - 6.7.0.1.191 - 2011.05.08 - -
TrendMicro - 9.200.0.1012 - 2011.05.08 - -
TrendMicro-HouseCall - 9.200.0.1012 - 2011.05.08 - -
VBA32 - 3.12.16.0 - 2011.05.08 - -
VIPRE - 9223 - 2011.05.08 - -
ViRobot - 2011.5.7.4450 - 2011.05.08 - -
VirusBuster - 13.6.343.0 - 2011.05.08 - -
File info:
MD5: d38d75fb72d0d3dbe0d4bc1e0ebb730b
SHA1: 8b74f3438000f2a428b8aa6d1ce2753d8983165b
SHA256: a01191d9a327818a65b0d3d56796845f32f034e611799cd9efcd7162f855c02f
File size: 200704 bytes
Scan date: 2011-05-08 15:06:49 (UTC)

-

Personally I dont like this program at all. It basically just kills every non system process. So my AntiVirus went down, my firewall went down, my Mouse drivers, keyboard drivers and headphone drivers are down. I had to wait a few minutes for my actuall computer to let me have control again.

I think you'd be much better putting the processes into a checklist box and letting the user choose which processes they want to kill or not.

Bleepy thank you for testing it out,, i think you are right better to select and kill instead of kill everything
 
Go on some virus websites, do some research, and find the names of processes that are known to be malicious, like, server.exe, bot.exe, csrss.exe (ONLY when it's non-system), lsass.exe (ONLY when it is non system).

This would make it so every driver the end-user has running, would not die.
 
Back
Top