llSourcell / antivirus_demo

Antivirus Demo for Fresh Machine Learning #7
MIT License
108 stars 89 forks source link

Syntax errors #8

Open brunnauer opened 7 years ago

brunnauer commented 7 years ago

I am getting so much syntax errors... Most of them are no problem, but I am stuck at checkpe.py <line 187>: It's giving me a syntax error at the 'data' variable. I don't know what could be wrong.

Any help appreciated!

RishiGG commented 3 years ago

am having an error too..division by zero error.

Srilekha26 commented 3 years ago

The zero error is because the entropy variable is not getting generated correctly. You can change those lines to this : list_pe_sections = [] for i in pe.sections: list_pe_sections.append(i)

entropy = list(map(lambda x:x.get_entropy(), list_pe_sections)). You will get similar errors at many places with the map function. Just put the map function in list(). Making these changes will remove the syntax errors, but the code is predicting legitimate files as Malicious. Still need to look into that.