nevermoe / unity_metadata_loader

GNU General Public License v2.0
522 stars 127 forks source link

No module named ida_idp #3

Closed ghost closed 7 years ago

ghost commented 7 years ago

I'm trying to load python script in IDA but i'm getting an error about "No module named ida_idp" (see screenshot). I followed the excat steps I'm using Python 2.7.12 on Windows 10 x64

image

nevermoe commented 7 years ago

hi, because maybe some lower version of IDA doesn't support this lib. You can checkout a previous commit of my code using

git checkout a784bcbd6995d0075f3eabbe5a4e0b5f9b8f70c5

This previous version does not use the ida_idp lib but may have problem if you are working with a x86 binary. But it should work fine with arm.

ghost commented 7 years ago

Thanks, i will try to upgrade IDA to the latest version asap. I always working with ARM binary and not x86.

Darkness0ut commented 7 years ago

replace ida_idp with idaapi can use in ida 6.8.

ghost commented 7 years ago

Thanks but IDA is not loading any string

Locating Methods and Strings...
Methods Start At: 12e80b8
Loading Symbols...
ghost commented 7 years ago

anyone can help? i can't upgrade IDA to 6.95

nevermoe commented 7 years ago

hi, I can't suggest anything with your information. Can you confirm two text files outputted in the directory of your binary? Besides, you should use 32bit ida with 32 bit binary and vice versa for 64 bit. Don't mix them up.

ghost commented 7 years ago

I tried 32 bit IDA but still not working. I don't know what you mean by two text files but this is my directory.

image

nevermoe commented 7 years ago

It's strange because two .txt files should be created in this folder. You can try double click unity_decoder.exe to see if any .txt file is generated. It's probably that your binary is compiled by a incompitable unity version.

Tell me what does the unity_decoder.exe output in the cmd window.

ghost commented 7 years ago

Ok i found out. First, I place the unity_decoder.exe from the Release folder in the same directory, double-clicked and it worked, then load the script in IDA Pro.

unity_decoder.exe from Debug folder did not work because the ucrtbased.dll is missing.

The reason why the script didn't execute the .exe file because Windows can't recognize the "/" in the path. In python I printed the path.

import os, sys path = os.getcwd() test = (path+'/unity_decoder.exe') print test D:\Android apps + data\censoredgame/unity_decoder.exe

I don't know if you made the script cross-platform, but it would be great to make a OS check before setting the path. In Windows it must be \unity_decoder.exe i guess

lHectorl commented 7 years ago

i have the same problem and still cant make it work ive even installed 6.95 but nothing same problem