C#

Moderators: None (Apply to moderate this forum)
Number of threads: 2722
Number of posts: 5749

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
How to block a program from running using winforms? Posted by trickx0729 on 22 Aug 2009 at 7:00 AM
I want to block a certain program from running like "Keyboard Collector", a key logger which cannot be seen running in the task manager but active and running, or any kinds of program similar to keyboard collector.

How to code this kind of function? If its OK, may you post the solution in this thread? Thanks in advance :D
Report
Re: How to block a program from running using winforms? Posted by DataDink on 22 Aug 2009 at 4:11 PM
Everything has a visible process somewhere - even if it's being hosted by another process i.e. svchost.

What you need to do is find out where exactly the keylogger is located on disk - or figure out how it is starting up.

If it has installed itself as a service then you will need to stop the service that is running it - disable the service or simply delete the assembly.

If it is starting with the registry start up software you need to go into the console and start up "MSCONFIG" in order to edit the start-up keys.

Otherwise it may be in the user start-up folder - if it's there just delete it.
Report
Re: How to block a program from running using winforms? Posted by trickx0729 on 23 Aug 2009 at 9:23 AM
When I install Keyboard Collector, it resides in the Program Files,.(It is only a trial version though)

I want to code an application in C# where it can negate the Keyboard Collector from running without deleting it. It will only show a Message Box saying that Keyboard Collector has been stopped at the same time it is blocking the said program. Like what anti-virus are doing..maybe
Report
Re: How to block a program from running using winforms? Posted by DataDink on 26 Aug 2009 at 10:29 AM
To get the kind of functionality that anti-virus software is using I believe you are going to need to write some kind of service.

I won't be able to help you out with that but suggest doing some research online about how anti-virus software works. - this is not common functionality.



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.