Open brunnauer opened 7 years ago
am having an error too..division by zero error.
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.
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!