Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions standalone/Kinginyourcastle.py
Original file line number Diff line number Diff line change
Expand Up @@ -445,9 +445,9 @@ def check_pe_header(filepath):
if float(secEntropies[0]) > 6.7 or float(secEntropies[0]) < 6.0:
eval = eval + 50

epSecIndex = epSection.split('|')[1]
epSecIndex = int(epSection.split('|')[1])
# max. 6 secEntropies available
if epSecIndex <=6:
if epSecIndex < len(secEntropies) and secEntropies[epSecIndex]:
if float(secEntropies[epSecIndex]) > 6.7 or float(secEntropies[epSecIndex]) < 6.0:
eval = eval + 60

Expand Down