Closed dummys closed 3 years ago
+1. Since py2.7 is deprecating soon, I hope keypatch could support Python 3
The latest code in github should work in Python3
@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.
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.
Looking forward to
@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?
@Moojx 593fcacb3022d9fbd510bbb49297008b712f1ec7 works for me
this exception code is adapt to python 2.x, you only to update relevant exception code
这是一封自动回复邮件。已经收到您的来信,我会尽快回复。
Hi,
Is it possible to port it to ida 7.4 please ?