keystone-engine / keypatch

Multi-architecture assembler for IDA Pro. Powered by Keystone Engine.
http://www.keystone-engine.org/keypatch
GNU General Public License v2.0
1.49k stars 355 forks source link

Update appendix for IDA 7.0 #29

Closed SilverBut closed 6 years ago

SilverBut commented 7 years ago

IDA 7.0 is now a native x64 application, which means it is now using Python 2.7 x64. So it would be great if we can update the appendix.

aquynh commented 7 years ago

that is right. would you send a pull req to update the docs?

SilverBut commented 7 years ago

Pull request.....good idea but I'm wondering if my install method can be applied to other people.

I've also noticed a pull request also about this issue. Will check and try..

SilverBut commented 7 years ago

Pushed pr #31

o0xmuhe commented 7 years ago

I have tested on my mac with IDA Pro7.0 . You need to build keystone and install the bindings on your computer,then copy keypatch.py to IDA_PWD/IDA Pro 7.0/ida.app/Contents/MacOS/plugins . :) img

sorry for the image...

fjh658 commented 7 years ago

@o0xmuhe

https://github.com/keystone-engine/keypatch/issues/28

check methods:

You enter this inside the python console of ida

Python>print keystone
<module 'keystone.keystone' from '/Applications/IDA Pro 7.0/ida64.app/Contents/MacOS/python/keystone/keystone.py'>

Python>print keystone.arm_const
<module 'keystone.arm_const' from '/Applications/IDA Pro 7.0/ida64.app/Contents/MacOS/python/keystone/arm_const.py'>

and

enter this in the python standard console

Python 2.7.13 (default, Jul 18 2017, 09:17:00)
[GCC 4.2.1 Compatible Apple LLVM 8.1.0 (clang-802.0.42)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import keystone
>>> print keystone
<module 'keystone' from '/usr/local/lib/python2.7/site-packages/keystone/__init__.pyc'>
>>> print keystone.arm_const
<module 'keystone.arm_const' from '/usr/local/lib/python2.7/site-packages/keystone/arm_const.pyc'>
>>>

compare

o0xmuhe commented 7 years ago

@fjh658 I don't konw why they are the same on my mac.May be sth wrong...

fjh658 commented 7 years ago

Please selected the assembly instructions and try again. @o0xmuhe

o0xmuhe commented 7 years ago

It works in my way. :)

SilverBut commented 6 years ago

Seems no more questions about the appendix. Close now.