Date: Fri, 28 Aug 1998 15:11:19 -0700 (PDT) From: "Jan B. Koum " <jkb@best.com> To: security@FreeBSD.ORG Subject: Re: Shell history (Was: Re: post breakin log) Message-ID: <Pine.BSF.4.02A.9808281510000.17350-100000@shell6.ba.best.com> In-Reply-To: <199808280820.KAA00469@CoDe.hu>
next in thread | previous in thread | raw e-mail | index | archive | help
cat /dev/null > typescript
-- Yan
www.best.com/~jkb/ Unix users of the world unite:
www.{free,open,net}bsd.org | www.linux.org | www.apache.org | www.perl.com
"Turn up the lights, I don't want to go home in the dark."
On Fri, 28 Aug 1998, Zahemszky Gabor wrote:
>>
>> 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?Pine.BSF.4.02A.9808281510000.17350-100000>
