Last active
November 25, 2023 14:37
-
-
Save eggpod/83fbaece636e8ca04ebb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[swigをインストール] | |
http://www.swig.org/download.html から3.0.5(最新版)をダウンロード、展開しパスを通す。 | |
例では3系だがswigは2系を推奨 | |
> 7z x swigwin-3.0.5.zip | |
> set PATH=%PATH%;c:\work\swigwin-3.0.5 | |
[idasdkの配置] | |
idapythonの1つ下のディレクトリにswigsdk-versions/6.7のような形式でバージョンごとのディレクトリを作りidasdk67のファイルを展開する | |
> mkdir swigsdk-versions | |
> 7z x idasdk67.zip -oswigsdk-versions | |
> move oswigsdk-versions\idasdk67 oswigsdk-versions\6.7 | |
もしくはIDA環境変数にidasdkのパスを設定する | |
> set IDA=c:\work\idasdk | |
sdk配置はこんな感じ | |
swigsdk-versions | |
|-6.6 | |
| |-bin | |
| |-etc | |
| |-include | |
|... | |
|-6.7 | |
| |-bin | |
| |-etc | |
| |-include | |
|... | |
[idapython] | |
pythonは2.6か2.7。3.xはダメ | |
> python --version | |
Python 2.7.8 | |
リポジトリをチェックアウトし、build.pyでコンパイル。 | |
> svn checkout http://idapython.googlecode.com/svn/trunk/ idapython | |
> cd idapython | |
> "c:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\vcvars32.bat" | |
> python build.py --ea64 | |
Hex-Rays decompilerがあるなら | |
> python build.py --ea64 --with-hex-rays | |
※注意点 | |
* デフォルトでは64bit版がコンパイルされない。build.py --eaで64bit版用のプラグインpython.p64もコンパイルされる。 | |
* リポジトリのtrunkは基本的に最新版のidasdkを対象としているため、それ以外の場合には自分でリビジョン指定で持ってくること | |
* idasdkはリリース後にマイナー更新があったりするので注意 | |
* また、最新すぎるとidapython側が対応していない場合もある | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment