Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 28 Aug 1998 10:20:51 +0200 (CEST)
From:      Zahemszky Gabor <zgabor@zg.CoDe.hu>
To:        freebsd.org!freebsd-security@zg.CoDe.hu
Cc:        best.com!jkb@zg.CoDe.hu
Subject:   Re: Shell history (Was: Re: post breakin log)
Message-ID:  <199808280820.KAA00469@CoDe.hu>
In-Reply-To: <Pine.BSF.4.02A.9808272151030.27634-100000@shell6.ba.best.com> from "Jan B. Koum" at "Aug 27, 98 09:55:59 pm"

next in thread | previous in thread | raw e-mail | index | archive | help
> 
> 	This is assuming intruder will not try to change shell, turn off
> history within the shell and is in general pretty clueless when it comes
> to shell history. :)
> 	A friend of mine came up with an idea to create a shell which
> would log everything a user does.. not via shell history mechanism, but
> rather ala watch(8). Everything user types would go into some files
> somewhere. Then again, nothing ever came out of it.

man script

ZGabor at CoDe dot HU

-- 
#!/bin/ksh
Z='21N16I25C25E30, 40M30E33E25T15U!' ;IFS=' ABCDEFGHIJKLMNOPQRSTUVWXYZ ';set $Z ;for i { [[ $i = ? ]]&&print $i&&break;[[ $i = ??? ]]&&j=$i&&i=${i%?};typeset -i40 i=8#$i;print -n ${i#???};[[ "$j" = ??? ]]&&print -n "${j#??} "&&j=;typeset +i i;};IFS=' 0123456789 ';set $Z;X=;for i { [[ $i = , ]]&&i=2;[[ $i = ?? ]]||typeset -l i;X="$X $i";typeset +l i;};print "$X"

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-security" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199808280820.KAA00469>