Assembly Language for Beginners

(Jeff_L) #1

1.9. SCANF()


MSVC: x86 + OllyDbg


Let’s try to hack our program in OllyDbg, forcing it to thinkscanf()always works without error. When an
address of a local variable is passed intoscanf(), the variable initially contains some random garbage,
in this case0x6E494714:


Figure 1.19:OllyDbg: passing variable address intoscanf()
Free download pdf