Part of Practical malware analysis Lab5, is to run a python script in IDA Pro
I have tried by going to Files-->Script command then I have pasted my python code:
sea = ScreenEA()
for i in range(0x00,0x50):
b = Byte(sea+i)
decoded_byte = b ^ 0x55
PatchByte(sea+i,decoded_byte)
when I click Run it shows me this error:
NameError: name 'ScreenEA' is not defined
.
PS: when I tried to upload the script file it also shows the same error
I have tried idc.ScreenEA just to see what will happen but no luck.