antivirus_demo icon indicating copy to clipboard operation
antivirus_demo copied to clipboard

Syntax errors

Open brunnauer opened this issue 7 years ago • 2 comments

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!

brunnauer avatar Sep 24 '17 05:09 brunnauer

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

RishiGG avatar Feb 24 '21 18:02 RishiGG

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.

Srilekha26 avatar Sep 26 '21 14:09 Srilekha26