![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Professional Programmer
|
Hello yall, I am now on the 3rd version of my Donwload Blocker, and its going pretty good. Now I want to add where it can tell if the user has admin rights so they could allwo or block downloads that way.
Example: At our school our computers has a administartor and a cougars account . I would like to make it to where if the user is logged on as admin it will not block downloads. Then if the cougars account is logged on it will ask for the admins password. Then: Process Hider - I got it to hide in task list I dont know which would be eaiser. Hide the Task Manager window, or just hid it in processes. I dont klnow how to hide to hide it, so if I cant get any help[ here, I'll prolly just hide the Task Manager. Thank again yall.
__________________
Forgiveness is the fragrance that the violet sheds on the heal that has crushed it. - Mark Twain Destruction leads to a very rough road, but it also breeds creation. |
|
|
|
|
|
#2 |
|
Hobbyist Programmer
Join Date: Apr 2005
Posts: 218
Rep Power: 4
![]() |
I don't like the idea of hiding the task manager just incase the student needs to end a process, but thats also where the average student could end your process making the blocker useless. But I think you will need to disable the task manager for your blocker to be effective. I found these links useful -
http://www.devx.com/vb2themax/Tip/18281 http://www.codeproject.com/system/preventclose.asp Or you could fiddle with the WIN API calls and hide your process. This would be the best solution so you don't disable some of the features that the student needs. you can find some links/help on the API here - http://www.developerfusion.co.uk/for...d/93484/#93484 If you google for windows API tutorials you should find some useful tutorials |
|
|
|
|
|
#3 |
|
Professional Programmer
|
Thanks for the links zorin. None of those links gave me anything to actually hide the program., I was thinking of doing i where when the program is shut down, it just starts right back up. I dont know though. I'm still a-thinking. Thanks though
__________________
Forgiveness is the fragrance that the violet sheds on the heal that has crushed it. - Mark Twain Destruction leads to a very rough road, but it also breeds creation. |
|
|
|
|
|
#4 |
|
Programming Guru
![]() Join Date: Apr 2005
Posts: 1,824
Rep Power: 5
![]() |
The problem with hiding the task list, is they could still run from the command prompt:
taskkill /f /im downloadblocker.exe |
|
|
|
|
|
#5 |
|
Hobbyist Programmer
Join Date: Apr 2005
Posts: 218
Rep Power: 4
![]() |
Disable the command prompt?
|
|
|
|
|
|
#6 |
|
Newbie
Join Date: Mar 2006
Posts: 15
Rep Power: 0
![]() |
If you really want to get sneaky, google "dll injection". You can inject your code into another process via a linked library, so it doesnt show up on the task manager, nor the process list. This is relatively inefficient with VB. I'd suggest Delphi or C++ for that. It should be possible though.
Here is a delphi example. http://iamaphex.net/downloads/DllInjection.zip |
|
|
|
|
|
#7 |
|
Professional Programmer
|
I dont know. I like it to where if the user logged in atm has admin rights everything is normal, then if the accoutn logged in atm doenst have admin rights. The blocker settings are turned on.
__________________
Forgiveness is the fragrance that the violet sheds on the heal that has crushed it. - Mark Twain Destruction leads to a very rough road, but it also breeds creation. |
|
|
|
|
|
#8 | ||
|
Programming Guru
![]() Join Date: Apr 2005
Posts: 1,824
Rep Power: 5
![]() |
Quote:
Quote:
|
||
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|