LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Closed Thread
  Search this Thread
Old 02-25-2010, 03:30 AM   #1
hamedhsn
Member
 
Registered: Feb 2010
Distribution: opensuse 11.2
Posts: 57

Rep: Reputation: 0
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..
 
Old 02-25-2010, 03:41 AM   #2
zhjim
Senior Member
 
Registered: Oct 2004
Distribution: Debian Squeeze x86_64
Posts: 1,748
Blog Entries: 11

Rep: Reputation: 233Reputation: 233Reputation: 233
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.
 
Old 02-25-2010, 04:01 AM   #3
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
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.
 
Old 02-25-2010, 04:03 AM   #4
Sergei Steshenko
Senior Member
 
Registered: May 2005
Posts: 4,481

Rep: Reputation: 454Reputation: 454Reputation: 454Reputation: 454Reputation: 454
Quote:
Originally Posted by hamedhsn View Post
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 ?
 
1 members found this post helpful.
Old 02-25-2010, 06:42 AM   #5
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
duplicate closed....
 
  


Closed Thread


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Kernel Scripting-Hide a process Eilya Programming 2 09-16-2008 01:49 AM
Kernel Scripting-Hide a process Eilya Linux - Security 5 08-26-2008 12:02 PM
How hide Startup Log during the Booting Process RMLinux Linux - Newbie 2 08-26-2006 12:31 AM
hide running process jim656 Linux - Security 1 02-15-2006 08:37 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 05:48 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration