Question: An excerpt from a program that checks a serial number appears below. Discuss in detail how you would patch this code (in the SRE sense),

 An excerpt from a program that checks a serial number appears

An excerpt from a program that checks a serial number appears below. Discuss in detail how you would patch this code (in the SRE sense), so that any serial number will work. text:00401003 push offset aEnterSerialNum; " Enter Serial Number " text:00401008 call sub_4010AF text:0040100D lea eax, [esp+18h+var_14] text:00401011 push eax text:00401012 push offset aS; "%s" text:00401017 call sub_401098 text:004010C push 8 text:0040101E lea ecx, [esp+24h+var_14] text:00401022 push offset xyz text:00401027 push ecx text:00401028 call sub_401060 text:0040102D add esp, 18h text:00401030 test eax, eax text:00401032 jz short loc_401045 text:00401034 push offset aErrorIncorrect; "Error! Incorrect serial number. Text:00401039 call sub_4010AF

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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 Databases Questions!