Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

port it to ida 7.4 and python3 #65

Closed
dummys opened this issue Nov 1, 2019 · 9 comments
Closed

port it to ida 7.4 and python3 #65

dummys opened this issue Nov 1, 2019 · 9 comments

Comments

@dummys
Copy link

dummys commented Nov 1, 2019

Hi,

Is it possible to port it to ida 7.4 please ?

@liuxuan30
Copy link

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

@aquynh
Copy link
Member

aquynh commented Nov 5, 2019

The latest code in github should work in Python3

@liuxuan30
Copy link

@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
Copy link

s3c commented Nov 14, 2019

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
Copy link

Looking forward to

@Moojx
Copy link

Moojx commented Dec 17, 2020

@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
Copy link

fuomag9 commented Mar 21, 2021

@Moojx 593fcac works for me

@dummys dummys closed this as completed Sep 1, 2021
@xiaoye-2018
Copy link

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

@kiritowch
Copy link

kiritowch commented Mar 9, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants