Question: There is a flaw in the virus program of Figure 21.1.What is it? program V := {goto main; 1234567; subroutine infect-executable := {loop: file :=
There is a flaw in the virus program of Figure 21.1.What is it?
program V := {goto main; 1234567; subroutine infect-executable := {loop: file := get-random-executable-file; } if (first-line-of-file = 1234567) then goto loop else prepend V to file; } subroutine do-damage := next: {whatever damage is to be done} subroutine trigger-pulled := main: main-program := {infect-executable; if trigger-pulled then do-damage; goto next; } {return true if some condition holds} Figure 21.1 A Simple Virus
Step by Step Solution
3.47 Rating (157 Votes )
There are 3 Steps involved in it
The program will l... View full answer
Get step-by-step solutions from verified subject matter experts
