简体   繁体   中英

OllyDbg : 'Label expected' issue

Well, as newbie in reverse engineering, i tried to use 'inline patch' technique to patch the program, then i got stuck on this point :

图片

2

Assemble window keep giving me message 'Label expected', so i edit that instruction to name label, such as 'myfunc'.

But when i tried to assemble codes like 'MOV ECX, 0C', it worked properly.

Why 'Label expected pop up and how to solve this issue?

(Program i'm trying to patch is ap0x's patchme_no1.exe)

Question Number one remove the unpackme. and enter pure address
the string "unpackme.40xxxx" is treated as label
ollydbg tries to locate the label and fails

if you want to use it as it is
you can label some address with that string using the COLON : keyboard shortcut

below are two screen shots one with the error other no error because the address has been labelled for reference

label expected error

在此处输入图片说明

the address is labelled now this label can be used in assemble dialog

在此处输入图片说明

for second question in comment

you cannot assemble an ascii string inplace
you need to use ctrl+e to edit

在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM