hide from Task manager or Anti-Kill

This is the forum for miscellaneous technical/programming questions.

Moderator: 2ffat

hide from Task manager or Anti-Kill

Postby qawsedstation » Fri Apr 13, 2012 5:27 pm

I need to hide from Task manager or Anti-Kill my Application on BCB 6 C++
Please Help me... I need my Application not terminate... :P
qawsedstation
Active Poster
Active Poster
 
Posts: 14
Joined: Tue Apr 03, 2012 4:13 pm

Re: hide from Task manager or Anti-Kill

Postby 2ffat » Sat Apr 14, 2012 9:16 am

Sounds like you want to create a service instead of an app? Is that correct?
James P. Cottingham

Look at me still talking
when there is science to do.
User avatar
2ffat
Forum Mod
Forum Mod
 
Posts: 427
Joined: Wed Jun 23, 2004 7:07 am
Location: South Hill, VA

Re: hide from Task manager or Anti-Kill

Postby Lena » Sat Apr 14, 2012 9:34 am

Code: Select all
__fastcall TForm2::TForm2(TComponent* Owner)
   : TForm(Owner)
{
 Visible = false;
 Application->ShowMainForm = false;
}


?
Lena
BCBJ Master
BCBJ Master
 
Posts: 519
Joined: Sun Feb 06, 2011 1:28 pm

Re: hide from Task manager or Anti-Kill

Postby qawsedstation » Sat Apr 14, 2012 9:37 am

not exactly ... I need an VCL application that will not close ever from the user.
or may be closed by task manager but reopens automatically or hide from task manager
Can you help me?
qawsedstation
Active Poster
Active Poster
 
Posts: 14
Joined: Tue Apr 03, 2012 4:13 pm

Re: hide from Task manager or Anti-Kill

Postby qawsedstation » Sat Apr 14, 2012 9:44 am

Lena wrote:__fastcall TForm2::TForm2(TComponent* Owner)
   : TForm(Owner)
{
Visible = false;
Application->ShowMainForm = false;
}


this code is very well, is not visible from Tab "Applications" but from task manager on the tab of "processes" is visible. and i can terminate the application from this.
qawsedstation
Active Poster
Active Poster
 
Posts: 14
Joined: Tue Apr 03, 2012 4:13 pm

Re: hide from Task manager or Anti-Kill

Postby qawsedstation » Sat Apr 14, 2012 9:49 am

if you have code in non-VCL please send me too 8)
qawsedstation
Active Poster
Active Poster
 
Posts: 14
Joined: Tue Apr 03, 2012 4:13 pm

Re: hide from Task manager or Anti-Kill

Postby rlebeau » Mon Apr 16, 2012 8:37 pm

qawsedstation wrote:I need an VCL application that will not close ever from the user.


The user has final say over what runs on their machine. If they don't want your app running, they are free to kill it. You should not be trying to prevent that. To change that, you would have to run the app under a different user account that the user does not have permissions to.

qawsedstation wrote:or may be closed by task manager but reopens automatically or hide from task manager


To hide from Task Manager, you would basically have to write a rootkit, which is bound to trigger security/antivirus alerts.

A killed app cannot auto-restart itself. You would need to create and run a separate process that monitors the main process that you want to restart. But then the user can always kill the watchdog process first, so it is a kin of catch-22.

On Windows 2000 and later, at least, a service can register itself with the SCM via ChangeServiceConfig2(SERVICE_CONFIG_FAILURE_ACTIONS) to indicate that it wants to be auto-restarted if it dies unexpectedly.
Remy Lebeau (TeamB)
Lebeau Software
User avatar
rlebeau
BCBJ Author
BCBJ Author
 
Posts: 1446
Joined: Wed Jun 01, 2005 3:21 am
Location: California, USA


Return to Technical

Who is online

Users browsing this forum: Baidu [Spider] and 14 guests