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

port it to ida 7.4 and python3 #65

Closed dummys closed 3 years ago

dummys commented 4 years ago

Hi,

Is it possible to port it to ida 7.4 please ?

liuxuan30 commented 4 years ago

+1. Since py2.7 is deprecating soon, I hope keypatch could support Python 3

aquynh commented 4 years ago

The latest code in github should work in Python3

liuxuan30 commented 4 years ago

@aquynh I tried latest master keypatch.py on IDA 7.4 with python3:

/Applications/IDA Pro 7.4/ida64.app/Contents/MacOS/plugins/keypatch.py: invalid syntax (keypatch.py, line 131)
Traceback (most recent call last):
  File "/Applications/IDA Pro 7.4/ida64.app/Contents/MacOS/python/3/ida_idaapi.py", line 589, in IDAPython_ExecScript
    code = compile(fin.read(), script, 'exec')
  File "/Applications/IDA Pro 7.4/ida64.app/Contents/MacOS/plugins/keypatch.py", line 131
    except HTTPError, e:
                    ^
SyntaxError: invalid syntax

it seems not supported yet.

s3c commented 4 years ago

Updating the exception handlers was easy enough, but you manually have to install keystone, which then fails to include some IDC functions, presumably because they aren't in the API anymore. Didn't look into this further.

kiritowch commented 4 years ago

Looking forward to

Moojx commented 3 years ago

@aquynh I tried latest master keypatch.py on IDA 7.4 with python3:

/Applications/IDA Pro 7.4/ida64.app/Contents/MacOS/plugins/keypatch.py: invalid syntax (keypatch.py, line 131)
Traceback (most recent call last):
  File "/Applications/IDA Pro 7.4/ida64.app/Contents/MacOS/python/3/ida_idaapi.py", line 589, in IDAPython_ExecScript
    code = compile(fin.read(), script, 'exec')
  File "/Applications/IDA Pro 7.4/ida64.app/Contents/MacOS/plugins/keypatch.py", line 131
    except HTTPError, e:
                    ^
SyntaxError: invalid syntax

it seems not supported yet.

@aquynh I tried latest master keypatch.py on IDA 7.4 with python3:

/Applications/IDA Pro 7.4/ida64.app/Contents/MacOS/plugins/keypatch.py: invalid syntax (keypatch.py, line 131)
Traceback (most recent call last):
  File "/Applications/IDA Pro 7.4/ida64.app/Contents/MacOS/python/3/ida_idaapi.py", line 589, in IDAPython_ExecScript
    code = compile(fin.read(), script, 'exec')
  File "/Applications/IDA Pro 7.4/ida64.app/Contents/MacOS/plugins/keypatch.py", line 131
    except HTTPError, e:
                    ^
SyntaxError: invalid syntax

it seems not supported yet.

Is it solved?

fuomag9 commented 3 years ago

@Moojx 593fcacb3022d9fbd510bbb49297008b712f1ec7 works for me

xiaoye-2018 commented 7 months ago

this exception code is adapt to python 2.x, you only to update relevant exception code

kiritowch commented 7 months ago

这是一封自动回复邮件。已经收到您的来信,我会尽快回复。