You are viewing a read-only archive of the Blogs.Harvard network. Learn more.
Skip to content

First pseudo virus

program virus:=

subroutine infect-executable:=
{loop:file = get-random-executable-file;
if first-line-of-file = 1234567 then goto loop;
prepend virus to file;

subroutine do-damage:=
{whatever damage is to be done}

subroutine trigger-pulled:=
{return true if some condition holds}

if trigger-pulled then do-damage;
goto next;}



Post a Comment

You must be logged in to post a comment.