Forum     

Go Back   Digit Technology Discussion Forum > Software > Open Source
Register FAQ Calendar Mark Forums Read

Open Source A place where you can talk to like-minded people about the fastest growing software movement today! Discuss anything and everything about Open Source software and Operating Systems.


Closed Thread
 
LinkBack Thread Tools Display Modes
Old 11-06-2005, 11:50 AM   #1 (permalink)
Dark Overlord !!!
 
rockthegod's Avatar
 
Join Date: May 2005
Location: Obliterated into Oblivion
Posts: 719
Default How to hide a process in Linux ???


Hi all...
Can neone tell me how to hide any process in Linux from <ps -aux > command. ???????????????????
__________________
C2Q6600@3.2G; eVGA nforce 780i; eVGA 8800 GT 512 MB (650/1900/1620) in SLi; 2 GB OCZ EPP DDR2 8500@1066M; PP&C Silencer 750W; Antec 900
AT&T Tilt WM 6.1 Pro Running Android
Sony PSP 2000 5.0-m33
rockthegod is offline  
Advertisements. Register and be a member of the community to get rid of them.
Advertisement

Old 11-06-2005, 12:16 PM   #2 (permalink)
FooBar Guy
 
GNUrag's Avatar
 
Join Date: Jun 2004
Location: GNUmbai
Posts: 1,245
Default

You cannot hide a process.
Why do you need to hide a process anyways?
__________________
- --
http://web.gnuer.org
GNUrag is offline  
Old 11-06-2005, 12:56 PM   #3 (permalink)
Dark Overlord !!!
 
rockthegod's Avatar
 
Join Date: May 2005
Location: Obliterated into Oblivion
Posts: 719
Default reply

actually I hv seen a person hiding a particular process..there may be a command/program/hack nething.. probably which can hide a particular process tht u r currently running...tht person is not ready to disclose the tweak..so i am searching a hell lot for it.. even in windows thr is particular registry tweak which can hide a process from task manager...
__________________
C2Q6600@3.2G; eVGA nforce 780i; eVGA 8800 GT 512 MB (650/1900/1620) in SLi; 2 GB OCZ EPP DDR2 8500@1066M; PP&C Silencer 750W; Antec 900
AT&T Tilt WM 6.1 Pro Running Android
Sony PSP 2000 5.0-m33
rockthegod is offline  
Old 11-06-2005, 04:20 PM   #4 (permalink)
FooBar Guy
 
GNUrag's Avatar
 
Join Date: Jun 2004
Location: GNUmbai
Posts: 1,245
Default

You can interrupt a process, you can kill a process, you can make a process sleep, you can stop a process

But you CANNOT hide a process. What your friend might have done is done some trick to fool off you people.

Note that, $ ps -ax is an incorrect syntax, and does not show complete process listing.

Just have a look at this small example that i have written:
Code:
#include <stdio.h>
#include <stdlib.h>

int main(int argc, char *argv[])
{
  int i;
  for(i = 0; i < argc; i++)
    memset(argv[i], 0, strlen(argv[i]));
  for(;;);
}
what this does is destroys the argument table generated by executing the program. now if you go and view the file /proc/pid/cmdline then you'll notice that this file is empty since we destroyed argv variable.

compile and execute this program by:
$ gcc -o phide phide.c
# ./phide


now if you give $ ps aux then nothing would be shown.. However you can still view the program's listing by :

$ ps -u anurag -U anurag
replace anurag with the username who is executing the program. and you'll find the process phide listed.

Ask your friend to prove the he can hide processes for real or if he's playing some hiding trick.
__________________
- --
http://web.gnuer.org
GNUrag is offline  
Old 11-06-2005, 06:51 PM   #5 (permalink)
Dark Overlord !!!
 
rockthegod's Avatar
 
Join Date: May 2005
Location: Obliterated into Oblivion
Posts: 719
Default reply

thanx 4 the comprehensive info. Actually suppose u r working on a particular linux rig as a authentic user but not the administrator and u wanna run a process and don't want the admin to know tht such a process is running..even if he suspects tht a process is running in the background and he tries to list the processes tht is actually running on the rig by executing ps -aux command .

My friend actually showed me this thing happening on his machine. He was running a program <new.out> by executing <./new.out> so the process list showed <./new.out> running and then he did tht tweak and then even though the process was running , the linux task manager showed no such processes running. No..dont think tht I meant to do nething iilegal/forbidden.. its just a craze to know the tweak..thats all.
__________________
C2Q6600@3.2G; eVGA nforce 780i; eVGA 8800 GT 512 MB (650/1900/1620) in SLi; 2 GB OCZ EPP DDR2 8500@1066M; PP&C Silencer 750W; Antec 900
AT&T Tilt WM 6.1 Pro Running Android
Sony PSP 2000 5.0-m33
rockthegod is offline  
Old 17-06-2005, 04:45 PM   #6 (permalink)
Right Off the Assembly Line
 
Join Date: Nov 2004
Posts: 10
Default

Its not that difficult to hide processes. One way to do it is through syscall hijacking. Check the following link on rootkits. http://www.section6.net/wiki/index.p...el_Compromises
r0xx is offline  
Old 17-06-2005, 09:49 PM   #7 (permalink)
Apprentice
 
Join Date: Jun 2005
Location: Mumbai
Posts: 74
Default

Do you mean running a process in the background?
e-freak is offline  
Old 18-06-2005, 06:25 PM   #8 (permalink)
Dark Overlord !!!
 
rockthegod's Avatar
 
Join Date: May 2005
Location: Obliterated into Oblivion
Posts: 719
Default

yup, the process will run in the background. Thanx roxx 4 ur website link.
__________________
C2Q6600@3.2G; eVGA nforce 780i; eVGA 8800 GT 512 MB (650/1900/1620) in SLi; 2 GB OCZ EPP DDR2 8500@1066M; PP&C Silencer 750W; Antec 900
AT&T Tilt WM 6.1 Pro Running Android
Sony PSP 2000 5.0-m33
rockthegod is offline  
Old 19-06-2005, 03:25 PM   #9 (permalink)
Right Off the Assembly Line
 
Join Date: Nov 2004
Posts: 10
Default

np rockthegod. This should be easier on linux 2.4 rather than on 2.6 kernel.
r0xx is offline  
Old 19-06-2005, 03:33 PM   #10 (permalink)
Apprentice
 
Join Date: Jun 2005
Location: Mumbai
Posts: 74
Default

I guess u can run processes in the background bu adding a "&" in the end of the command.
__________________
Let the windows open and the penguins come in.
------------------
Regards,
Sanket Medhi.
e-freak is offline  
Old 20-06-2005, 03:54 PM   #11 (permalink)
Dark Overlord !!!
 
rockthegod's Avatar
 
Join Date: May 2005
Location: Obliterated into Oblivion
Posts: 719
Default

@e-freak: No No No. I didn't mean that "background" .... I meant tht the process
should run in the background but would not be visible in the "Task Manager"
of Linux in any case.
__________________
C2Q6600@3.2G; eVGA nforce 780i; eVGA 8800 GT 512 MB (650/1900/1620) in SLi; 2 GB OCZ EPP DDR2 8500@1066M; PP&C Silencer 750W; Antec 900
AT&T Tilt WM 6.1 Pro Running Android
Sony PSP 2000 5.0-m33
rockthegod is offline  
Closed Thread

Bookmarks

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


 
Latest Threads
- by Charan
- by Charan

Advertisement




All times are GMT +5.5. The time now is 04:33 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.

Search Engine Optimization by vBSEO 3.3.2