Barry SCHWARTZ (Barijo ŜVARC) (chemoelectric) wrote,
Barry SCHWARTZ (Barijo ŜVARC)
chemoelectric

A trojan in ConTeXt

I was playing around with ConTeXt, the typesetting software baby of Hans Hagen, and decided to download the current snapshot. Upon running the current stuff, I discovered a date-triggered trojan, the lua code for which follows:


song = " \
--------------------------------------------------\
Edgar Guest:\
It Couldn't Be Done\
===================\
\
Somebody said that it couldn't be done,\
But he with a chuckle replied\
That \"maybe it couldn't,\" but he would be one\
Who wouldn't say so till he'd tried.\
So he buckled right in with the trace of a grin\
On his face. If he worried he hid it.\
He started to sing as he tackled the thing\
That couldn't be done, and he did it.\
\
Somebody scoffed: \"Oh, you'll never do that;\
At least no one ever has done it\";\
But he took off his coat and he took off his hat,\
And the first thing we knew he'd begun it.\
With a lift of his chin and a bit of a grin,\
Without any doubting or quiddit,\
He started to sing as he tackled the thing\
That couldn't be done, and he did it.\
\
There are thousands to tell you it cannot be done,\
There are thousands to prophesy failure;\
There are thousands to point out to you, one by one,\
The dangers that wait to assail you.\
But just buckle in with a bit of a grin,\
Just take off your coat and go to it;\
Just start to sing as you tackle the thing\
That \"cannot be done,\" and you'll do it.\
--------------------------------------------------\
\
Happy birthday, Hans!\
,%%%%%%%%,\
%%/\\%%%%/\\%%,\
,,,,, %%%\\C \"\" J/%%%,\
,%%%%%%%, ||||| %%%/ 6 6 \\%%%% .%\
,%%/\\%%%%/\\%, @@@@@@@@@ %%%| _ %%%% .%%`\
,%%%\\c \"\" J/%%, {~*~*~*~} '%%(=_Y_=)%%%%' %%`\
%. %%%%/ d b \\%%% @@@@@@@@@@@@@'%%%\\-/`%%%%; \\\\ \
`%%. __ %%%% _ |%%% {~* HAPPY *~} '%%%%%%%` \\ ))\
`%% .-' `\"~--\"`%%%%(=_Y_=)%%' { BIRTHDAY } | '. //\
// .' `. `%%%%`\\7/%%%'__{~~*~~*~~*~~} | | / \\ //\
(( / ; `%%%%%%%'____@@@@@@@@@@@@@ | | ( \\//\
`.`--' ,' _,`-._____`-, __) (__ __| | _\\ /\
`\"\"\"`._____ `--,` `))) /_______\\ (((((((___________)\
`~\"-)))\
"
today = os.date

if os.date("%Y-%m-%d") == "2008-10-31" or (today.month == 11 and today.day < 4) then
print(song)
end


Sorry that the picture of TeX lions and a birthday cake didn’t come out.

That if-statement looks buggy, assuming it isn’t removed pronto.

If I were Hans, my reaction would be annoyance more than anything else. Actually I’m annoyed, anyway, but would be more so if it were for my birthday. :)
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments