Skip to content

Commit

Permalink
Fixed entropy (from @brad-accuvant)
Browse files Browse the repository at this point in the history
  • Loading branch information
botherder committed Feb 18, 2015
1 parent f3785f3 commit d79c1e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/signatures/packer_entropy.py
Expand Up @@ -34,7 +34,7 @@ def run(self):
for section in self.results["static"]["pe_sections"]:
total_pe_data += int(section["size_of_data"], 16)

if section["entropy"] > 6.8:
if float(section["entropy"]) > 6.8:
self.data.append({"section" : section})
total_compressed += int(section["size_of_data"], 16)

Expand Down

0 comments on commit d79c1e6

Please sign in to comment.