Computer Forums

Member Login

Remember Me? Sign Up! | Forgot Password
 
Slogan
 
Computer Forums > Programmers Lounge > Programming Discussions » keeping my program running?
Closed Thread
Old 05-06-2005, 12:14 AM   #1 (permalink)
 
True Techie

Join Date: Feb 2005

Posts: 235

clever_j is on a distinguished road

Default keeping my program running?

Hi guys

Im developing a station logger type of software..

got everything handled except for the software's own security..

been through soooo many issues and loop holes like:

preventing CNTRL+ALT+DEL key
preventing end task on my process
preventing modification of start up entries
preventing user access to the task manager
etc
etc


and, IT ALL BOILS DOWN TO ONE SOLUTION...

Keep my program running.. coz if it's running i can constantly check for connections, registry modifications, etc etc.. but if the user finds a way to kill it im a sitting duck..

What's the BEST WAY to do this? is there a kernel level way of checking for my app's process? or something? When my app is exited it should be restarted?

im sure some programmers around here has experienced the need for this..

please advise oh knowledgeable ones..

tea
clever_j is offline  
Old 05-06-2005, 12:52 AM   #2 (permalink)
 
Super Techie

Join Date: Mar 2005

Posts: 259

C.Ingram

Send a message via AIM to C.Ingram Send a message via Yahoo to C.Ingram
Default

You can attach an COM object to a COM-aware application (you can make some if them launch your program when they are run, in case it gets killed) and attach to certian running processes. Doing either and manipulating other processes isn't something I'll discuss, though.
__________________
Christopher Ingram
Principal Consultant, Souken Group, LLC.
C.Ingram@SoukenGroup.com
(856) 392 5244 -- (866) Go Souken
C.Ingram is offline  
Old 05-06-2005, 01:50 AM   #3 (permalink)
 
True Techie

Join Date: Feb 2005

Posts: 235

clever_j is on a distinguished road

Default

hmm.. i would like to ask more, but as you stated, it's a solution you wouldnt want to discuss.. lolz that's ok.

hmm.. any other way? how about a kernel level type of checker.. that checks for my app and makes sure it's active?
clever_j is offline  
Old 05-06-2005, 03:13 AM   #4 (permalink)
 
Super Techie

Join Date: Mar 2005

Posts: 259

C.Ingram

Send a message via AIM to C.Ingram Send a message via Yahoo to C.Ingram
Default

Not without patching the kernel. You can modify drivers, DLLs, and programs on-disk or at run time. The former is easier to spot and fix. The latter means you have no guarantees.

Look up CreateRemoteThread.
__________________
Christopher Ingram
Principal Consultant, Souken Group, LLC.
C.Ingram@SoukenGroup.com
(856) 392 5244 -- (866) Go Souken
C.Ingram is offline  
Old 05-07-2005, 12:10 AM   #5 (permalink)
 
True Techie

Join Date: Feb 2005

Posts: 235

clever_j is on a distinguished road

Default

Have you ever used this software called PC Security? From Tropical Software?

It's really good at protecting its own process.. very tight security.. my quickest solution is to use my Station Locking software with PC Security...

but it would be great if I can tap into thier means of "self protection".. i dunno.. what do ya'll think?

tea
clever_j is offline  
Old 05-07-2005, 12:44 AM   #6 (permalink)
 
Super Techie

Join Date: Mar 2005

Posts: 259

C.Ingram

Send a message via AIM to C.Ingram Send a message via Yahoo to C.Ingram
Default

You can protect a process if it runs as a service on an NT branch box. At the very least you should be able to require an admin to start/stop it preventing it from being killed by a user.

The most effective way I've seen is to load a virtual device driver in at boot.
__________________
Christopher Ingram
Principal Consultant, Souken Group, LLC.
C.Ingram@SoukenGroup.com
(856) 392 5244 -- (866) Go Souken
C.Ingram is offline  
 
Closed Thread

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
Trackbacks are On
Pingbacks are On
Refbacks are On