Accenture / VulFi

IDA Pro plugin for query based searching within the binary useful mainly for vulnerability research.
Apache License 2.0
534 stars 63 forks source link

invalid syntax #2

Closed Ryze-T closed 2 years ago

Ryze-T commented 2 years ago

image What i can do ?

Martyx00 commented 2 years ago

Hello, thanks for reporting this. The problem seems to be that Python version on your machine is <3.8. The := operator was I believe introduced in version 3.8 and allows assignments in expressions (something I was happy to find out). If I am not mistaken, IDA version 7.5 should support Python 3.9 so updating your version of Python should address the issue. In case it does not, let me know, I will change the code to not use the code construct that causes the problem :)

nobodyisnobody commented 2 years ago

You should just rewrite the comparaison for backward compatibility:

answer = ida_kernwin.ask_buttons("Load Existing","Scan Again","Cancel",1,f"Previous scan results found.")
if vulfi_data and (answer == 1):
Martyx00 commented 2 years ago

Fixed with https://github.com/Accenture/VulFi/commit/9507fdddc2d3bb30b506356692e988851aac8876. Although you should update your Python :)