[Gllug] Hacker Attack, and a wild aside about version-controlled filesystems

Nix nix at esperi.org.uk
Thu Jan 26 19:35:53 UTC 2006


On Fri, 13 Jan 2006, ccooke gibbered uncontrollably:
> This, of course, pales in horror beside the guy I met who used a very
> specialised emacs in place of /sbin/init. Every single utility on the
> system was rewritten inside emacs...

I wonder about his emacs mods. It's impossible to access file modes or
the link count from XEmacs at least, for instance... perhaps it just
forked off ls and chmod for such things (as dired already can do).

>> > -- 
>> > d=(1 0 6 0 1 0 5 5 41 5 3 12 4 5 15 1 4 -2 5 5 0 5 4 24 3 5 27 1 3 -2 1 3 6)
>> > a=0;while :;do ((v=(c=a)+3));((x=d[d[a]]-d[d[a+1]]));d[d[a]]=$x;((a=d[d[a]]\
>> > <0?${d[a+2]}:v));case $a in -1)read d[d[c]];a=$v;;-2)echo ${d[d[c+1]]};a=$v\
>> > ;;0)exit;;esac;done 2>&- # Charles Cooke, Sysadmin.  
>> 
>> Neat. Crashes bash, too. :)
> 
> It's an emultion of a single-instruction CPU plus a program... there
> wasn't really enough space to either add a limit to the program or
> overflow detection to the code :-)

ah! :)

> -- 
> Z=$[(X=`tput cols`)*(Y=`tput lines`)];O=(X+1 X X-1 1);a(){ for((p=0;p<Z;p++));\
> do z=$[y=p/X+1,x=p%X+1,0];q=${B[p]};[ $i ]||B[p]=$[RANDOM%3];for e in ${O[@]} \
> ${O[@]//#/-};do(((j=p-e)>0))&&((0${B[j]}&&z++));done;c=\ ;((z==3))&&c=1;((z==2\
> ))&&c=$q;echo -ne "\E[$y;${x}H$c";A[p]=$c;done;i=1;B=("${A[@]}");a;};a # ccooke

... but now i have to decrypt this.

-- 
`Everyone has skeletons in the closet.  The US has the skeletons
 driving living folks into the closet.' --- Rebecca Ore
-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug




More information about the GLLUG mailing list