machoke icon indicating copy to clipboard operation
machoke copied to clipboard

Hash is missing NULL bytes

Open malwarefrank opened this issue 7 years ago • 0 comments

According to the Machoc description, each function should be represented by a 32-bit value. The current code is not including any NULL bytes when converting the number to its hex representation.

It should be a simple fix: '{:08x}'.format(mmh3.hash(machoke) & 0xFFFFFFFF)

malwarefrank avatar Sep 12 '18 20:09 malwarefrank