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 :=

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

1 Expert Approved Answer
Step: 1 Unlock

The program will l... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Cryptography And Network Security Questions!