OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Subject: Re: SysVinit audit: mesg and wall
From: Marc Esipovich (marccorky.net)
Date: Wed Aug 30 2000 - 07:55:54 CDT


 Hi,

> >
> > * Restricted messages to a customisable number of lines in length to stop
> > users flooding the terminal of another user (it doesn't do this very well,
> > it's a side effect) and to stop the banner scrolling off the top of the
> > terminal. Imagine this:
> > $ wall
> > [user hits enter key 25 times or more]
> > Broadcast message from root (tty1) Tue Aug 29 23:44:46 2000...
> >
> > You're all fired.
> > [eof]
> >
> > All online users with messages enabled would then see a message that
> > looks like it's from root.

 I've never looked into wall's code, so I'm just guessing:

 1. Instead of stuffing lots of emply lines, one can just issue an escape
sequence to clear the screen.

 2. So user can't trash another user's term, escape sequences should
be filtered out. (I think this has been done ?).

 bye,
        Marc.

--
marc  corky.net

fingerprint = D1F0 5689 967F B87A 98EB C64D 256A D6BF 80DE 6D3C

/"\ \ / ASCII Ribbon Campaign X Against HTML Mail / \