Question: 2. For the SRE example in Section 12.2.2, we patched the code by changing a test instruction to xor. a. Give at least two waysother
2. For the SRE example in Section 12.2.2, we patched the code by changing a test instruction to xor.
a. Give at least two waysother than changing test to xorthat Trudy could patch the code so that any serial number will work.
b. Changing the jz instruction that appears at address 0x401032 in Figure 12.4 to jnz is not a correct solution to part a. Why not?

text: UD0103 text: SBN 91 see text: DBADHDas .text:SND1011 .text: 0001012 .text:Down 17 text: Debec .text: assee1E text: ease 22 text: Baa1 27 text: BOND1D28 , text: Day 01 D2D text: BOAD3D .text: Jose B32 .text: BOAD1 eas text:able push offset aEnter SerialHunt toEnter Seriel Humbert call sub AB BAF 10a ea , resp+1Bhavar Taj push tax push offset as call sub_4 in Des push leax, , (esp.Pahruar14) push offset as123456;"zaruso " pushe call suo 401 D60 add sp. On test eax , a jz short loc_ 401 SAS push offset aError incorrect : Error incorrect serial nummer . call substan DAF Figure 12.4: Serial Number Program Disassembly
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
