CheckPointSW / Karta

Karta - source code assisted fast binary matching plugin for IDA
MIT License
862 stars 103 forks source link

karta_analyze_src.py on windows #18

Closed jap0 closed 5 years ago

jap0 commented 5 years ago

Is it possible "execute IDAPython scripts outside IDA"? I am trying to run the karta_analyze_src.py via following command: C:\Python27\Lib\site-packages\Karta-1.0.0-py2.7.egg\src>ida.exe -S"karta_analyze_src.py -D " -t .. no matter what args I provide to the script, the result is always the same: karta_analyze_src.py: error: too few arguments karta2

jap0 commented 5 years ago

With few script modifications it worked:

now it works when I run the script from command line like: C:\Python27\Lib\site-packages\Karta-1.0.0-py2.7.egg\src>ida.exe -S"karta_analyze_src.py" -t

*hope this small tut will help somebody to save time :)

chkp-eyalit commented 5 years ago

Sorry for the delayed response. You encountered an issue since karta_analyze_src.py should be invoked from the cmd line, and not from withing IDA. In turn, it activates the disassembler on each compiled file in the given input directory. Please read the documentation, as it will save you precious time.