LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   hide a process (https://www.linuxquestions.org/questions/programming-9/hide-a-process-791440/)

hamedhsn 02-25-2010 03:30 AM

hide a process
 
hi friends..this mini project is part of my system security course.
by using one programming language like c, i have to change ps source code such that one existing process will be hided from the list which showed by running ps -a in console.
i have already download source code but i dont know what i have to do??
any help is helpful for me..

zhjim 02-25-2010 03:41 AM

dig into the source code and find the place where it iterates over all the processes. Then kill the one you don't want to be shown out of the array and you should be set.

unSpawn 02-25-2010 04:01 AM

Please post your once and thread in only one forum. Posting a single thread in the most relevant forum will make it easier for members to help you and will keep the discussion in one place. This thread should be closed because it is a duplicate.

Sergei Steshenko 02-25-2010 04:03 AM

Quote:

Originally Posted by hamedhsn (Post 3876089)
hi friends..this mini project is part of my system security course.
by using one programming language like c, i have to change ps source code such that one existing process will be hided from the list which showed by running ps -a in console.
i have already download source code but i dont know what i have to do??
any help is helpful for me..

You've already opened a thread on the same subject, haven't you ?

You've already been told to read the code and to understand it, haven't you ?

So, what exactly isn't clear in the necessity to read the code and to understand it ?

If you have already started reading, what is the first thing you do not understand ?

pixellany 02-25-2010 06:42 AM

duplicate closed....


All times are GMT -5. The time now is 08:37 AM.