Bugtraq mailing list archives

Re: Breaking in from the monitor at the console


From: xibalba () cco caltech edu (Steven Fought)
Date: 02 Jun 1994 00:24:58 GMT


In article <199406011317.JAA04569 () smuggler bbn com> "John C. Orthoefer" <jco () bbn com> writes:

   Well pstat to best of my knowlege doesn't exist on solaris 2.x boxs.
   So there is no way to get the begining of the proc table.  Well not
   quite.  The System V ps does give you the start of the proc struct for
   a process.

   a-girl> ps -lfp $$ | more
    F S      UID   PID  PPID  C PRI NI     ADDR     SZ    WCHAN    STIME
   TTY
    TIME COMD
    8 S      jco  5718  5716 80   1 20 ff5d7800    213 ff5d79c8 09:01:09
   pts/10
    0:01 -csh      

   So I guess one more line needs to be changed to make fc-4.1.3 into
   fc-5.3.

   procp=`ps -lfp $1 | tail -1 | cut -f9`

The proc structure in Solaris is different, so more than that will
have to be changed, I think.  I took a stab at it, but I couldn't get
it to work (I got an exception error from the PROM).

Steven



Current thread: