Virus pseudo-code comments

progame V: // v passed to the editor
{goto main; == // unconditional jump to the main program at execution ==
1234567;// define a value
subroutine infect-executable; == // used to infect a program ==
{Loop; // define a value == ==
File: = GET-Random-excutable-File;// get a random file
if (first-line-of- file = 1234567) goto loop == // file acquired after 1,234,567 cycles into ==
the compress File;//Compressed file
prepend V to file;} // before the Pre-random file v
subroutine do-damage: == // if damage ==
{Whatever Damage to IS BE DONE}// ignore
subroutine trigger-pulled: == // if start ==
{return for condition Condition holds some Turn IF}//return
}
Main: main-Program: == // define main or editor ==
{
{Infect-Executable; // used to infect a program == ==
IF Trigger pulled the then-do-damamge; // == with procedure for destroying ==
GOTO Next;} // == == executed Next
Next: file-of-the uncompress REST; == == // destroys all files except the file is compressed
}

Released two original articles · won praise 1 · views 31

Guess you like

Origin blog.csdn.net/jnx5945/article/details/104942577