Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Mar 22nd, 2006, 11:16 AM   #1
bigguy
Professional Programmer
 
bigguy's Avatar
 
Join Date: Sep 2005
Location: Arkansas
Posts: 294
Rep Power: 0 bigguy is an unknown quantity at this point
Send a message via AIM to bigguy Send a message via MSN to bigguy Send a message via Yahoo to bigguy
Exclamation Admin Rights, and Process List Hider

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

We all make mistakes. If it doesn't kill us, it will make us stronger. If it does kill us, then it's to late, but it was a great ride while it lasted. - Seth Hall
bigguy is online now   Reply With Quote
Old Mar 22nd, 2006, 12:03 PM   #2
zorin
Hobbyist Programmer
 
Join Date: Apr 2005
Posts: 218
Rep Power: 4 zorin is on a distinguished road
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
zorin is offline   Reply With Quote
Old Mar 22nd, 2006, 10:00 PM   #3
bigguy
Professional Programmer
 
bigguy's Avatar
 
Join Date: Sep 2005
Location: Arkansas
Posts: 294
Rep Power: 0 bigguy is an unknown quantity at this point
Send a message via AIM to bigguy Send a message via MSN to bigguy Send a message via Yahoo to bigguy
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

We all make mistakes. If it doesn't kill us, it will make us stronger. If it does kill us, then it's to late, but it was a great ride while it lasted. - Seth Hall
bigguy is online now   Reply With Quote
Old Mar 23rd, 2006, 12:23 AM   #4
Sane
Programming Guru
 
Sane's Avatar
 
Join Date: Apr 2005
Posts: 1,791
Rep Power: 5 Sane will become famous soon enough
The problem with hiding the task list, is they could still run from the command prompt:

taskkill /f /im downloadblocker.exe
Sane is online now   Reply With Quote
Old Mar 23rd, 2006, 3:25 AM   #5
zorin
Hobbyist Programmer
 
Join Date: Apr 2005
Posts: 218
Rep Power: 4 zorin is on a distinguished road
Disable the command prompt?
zorin is offline   Reply With Quote
Old Mar 23rd, 2006, 12:50 PM   #6
bgeraghty
Newbie
 
Join Date: Mar 2006
Posts: 15
Rep Power: 0 bgeraghty is on a distinguished road
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
bgeraghty is offline   Reply With Quote
Old Mar 23rd, 2006, 12:50 PM   #7
bigguy
Professional Programmer
 
bigguy's Avatar
 
Join Date: Sep 2005
Location: Arkansas
Posts: 294
Rep Power: 0 bigguy is an unknown quantity at this point
Send a message via AIM to bigguy Send a message via MSN to bigguy Send a message via Yahoo to bigguy
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

We all make mistakes. If it doesn't kill us, it will make us stronger. If it does kill us, then it's to late, but it was a great ride while it lasted. - Seth Hall
bigguy is online now   Reply With Quote
Old Mar 23rd, 2006, 6:55 PM   #8
Sane
Programming Guru
 
Sane's Avatar
 
Join Date: Apr 2005
Posts: 1,791
Rep Power: 5 Sane will become famous soon enough
Quote:
Originally Posted by zorin
Disable the command prompt?
Almost any programming language has access to the command prompt functions...

Quote:
Originally Posted by Python 2.4
from os import system
system("taskkill /f /im downloadblocker.exe")
=/...
Sane is online now   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 11:38 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC