Skip to content

Commit

Permalink
Add initial MileRAT hashing algo
Browse files Browse the repository at this point in the history
Signed-off-by: Still Hsu <[email protected]>
  • Loading branch information
Still34 committed Nov 17, 2023
1 parent fef3215 commit caf4ade
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions algorithms/milerat.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Created by Still Hsu <[email protected]>

DESCRIPTION = "Hashing algorithm used by MileRAT."
TYPE = 'unsigned_int'
TEST_1 = 150583839

def hash(data):
esi = 0
for c in data:
esi = (ord(c) + 0x83 * esi) & 0xffffffff
return (esi & 0x7fffffff)

0 comments on commit caf4ade

Please sign in to comment.