![]() |
ApplicationScanner
I currently started working in the ITDepartment at my high school and one of the problems we face is users running applications which they are not supposed to. Some of the applications are blocked using GPO which checks the hash of the executable running. The problem with this is that each version of the blocked application will have a different hash. I put together an application which gets all the active windows and closes them based on the titlebar information. I have attempted writing this in C++ but I faced many problems. C# allowed me to write this in much less time. However it is a managed application and it does take up much more memory. I am looking for constructive criticism, ways to improve and stuff, or if anyone needs a good project they can rewrite this in C++:)
:
:
I hope you guys like it ;) |
Titlebar information? do you mean just what it says on the title bar?
If so, that's rather weak, some one can just write a little app that has the sameTitlebar information as the evil app and your app will close it. I think you should check the files the user has stored in their personal space at certain intervals and look for the evil applications and if found remove them and leave the user a little text file warning them. |
You're reinventing the wheel
Except...your wheel is square. It looks like your current group policy settings are already pointed in the right direction. Using hashes are only one option, however. Disallow execution by default. If it's in a trusted directory, allow it (They can't write to "C:\Program Files" or such, of course...you do have proper directory permissions, right?) If it's signed by a trusted publisher, allow it (different than hashes, less annoying). |
Quote:
Quote:
|
Quote:
Anyway, I thought I'd add for the sake of home users with particularly boneheaded siblings, children, etc. that you do not need a full-fledged domain controller to implement these restrictions. Just run secpol.msc from an admin account to tweak your local security settings. These restrictions can't be applied to a specific user group this way (to my knowledge), but as long as local administrators are exempt, its a workable feature. |
Thanks for the tip :)
|
I made a program like this bout a year ago. I closed windows by windowclass, and windowname, or title I cant remember. I think it was title, but it worked good. It's also safer, because there are tolld that can allow you to change the windows titlebar, but not the window class that I know of.
|
The window classes are internal and can be assigned dynamically depending on environment settings among other things, so either way, caption or class, the process if fundementally flawed - as Dameon states, group policies are there for this reason.
|
| All times are GMT -5. The time now is 4:41 PM. |
Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC