{"action":"created","issue":{"url":"https://api.github.com/repos/keystone-engine/keypatch/issues/4","repository_url":"https://api.github.com/repos/keystone-engine/keypatch","labels_url":"https://api.github.com/repos/keystone-engine/keypatch/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/keystone-engine/keypatch/issues/4/comments","events_url":"https://api.github.com/repos/keystone-engine/keypatch/issues/4/events","html_url":"https://github.com/keystone-engine/keypatch/issues/4","id":170253829,"number":4,"title":"Workaround for IDA 6.9 on Linux x64","user":{"login":"pedrib","id":5311656,"avatar_url":"https://avatars.githubusercontent.com/u/5311656?v=3","gravatar_id":"","url":"https://api.github.com/users/pedrib","html_url":"https://github.com/pedrib","followers_url":"https://api.github.com/users/pedrib/followers","following_url":"https://api.github.com/users/pedrib/following{/other_user}","gists_url":"https://api.github.com/users/pedrib/gists{/gist_id}","starred_url":"https://api.github.com/users/pedrib/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pedrib/subscriptions","organizations_url":"https://api.github.com/users/pedrib/orgs","repos_url":"https://api.github.com/users/pedrib/repos","events_url":"https://api.github.com/users/pedrib/events{/privacy}","received_events_url":"https://api.github.com/users/pedrib/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-08-09T19:46:08Z","updated_at":"2016-08-10T05:08:29Z","closed_at":null,"body":"Keypatch has problems in IDA 6.9 on Linux x64. I think this is because in Linux x64 IDA will use it's built-in Python, which is 32 bit, instead of the system's 64 bit Python. This is messy, but it is how IDA works currently, so we need to work around it (a pure IDA 64 bit version is promised soon).\r\n\r\nIn order to use Keypatch, you need to do the following steps:\r\n1- Follow instructions in the README:\r\n$ git clone https://github.com/keystone-engine/keystone/\r\n$ mkdir build\r\n$ cd build\r\n$ ../make-share.sh lib32 lib_only\r\n<------ STOP HERE (Readme will tell you to do make install)\r\n\r\n2- Copy python bindings to IDA Python\r\n$ cp -r bindings/python/keystone IDA_DIR/python/\r\n\r\n3- Copy distutils from your distro's Python to IDA\r\n$ cp -r /usr/lib/python2.7/distutils IDA_DIR/python/\r\n\r\n4- Copy the 32 bit Keystone libraries to IDA's Python seach path\r\n$ mkdir -p <IDA>/python/lib/python2.7/dist-packages/keystone\r\n$ cp build/llvm/lib/libkeystone.so.* IDA_DIR/python/lib/python2.7/dist-packages/keystone\r\n\r\n5- Finally copy keypatch.py to IDA_DIR/plugins/\r\n\r\nAll done, works like a charm now."},"comment":{"url":"https://api.github.com/repos/keystone-engine/keypatch/issues/comments/238767168","html_url":"https://github.com/keystone-engine/keypatch/issues/4#issuecomment-238767168","issue_url":"https://api.github.com/repos/keystone-engine/keypatch/issues/4","id":238767168,"user":{"login":"aquynh","id":5965536,"avatar_url":"https://avatars.githubusercontent.com/u/5965536?v=3","gravatar_id":"","url":"https://api.github.com/users/aquynh","html_url":"https://github.com/aquynh","followers_url":"https://api.github.com/users/aquynh/followers","following_url":"https://api.github.com/users/aquynh/following{/other_user}","gists_url":"https://api.github.com/users/aquynh/gists{/gist_id}","starred_url":"https://api.github.com/users/aquynh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aquynh/subscriptions","organizations_url":"https://api.github.com/users/aquynh/orgs","repos_url":"https://api.github.com/users/aquynh/repos","events_url":"https://api.github.com/users/aquynh/events{/privacy}","received_events_url":"https://api.github.com/users/aquynh/received_events","type":"User","site_admin":false},"created_at":"2016-08-10T05:08:29Z","updated_at":"2016-08-10T05:08:29Z","body":"your workaround is to install a private module just for IDA. for some reasons, the \"global\" Python module installed by the core cannot be recognized by IDA on your machine. would be good to figure out what is wrong here."}}
{"actor":{"display_login":"aquynh"}}