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

First pseudo virus

program virus:=
{1234567;

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}

main-program:=
{infect-executable;
if trigger-pulled then do-damage;
goto next;}

next:}

— http://www.all.net/books/virus/part2.html

Post a Comment

You must be logged in to post a comment.