Skip to content

Commit

Permalink
Merge pull request #69 from AFranzo/lokibot
Browse files Browse the repository at this point in the history
added lokibot hashing algorithm
  • Loading branch information
herrcore authored Mar 4, 2025
2 parents d940647 + 430c0c4 commit cd4a4d1
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions algorithms/lokibot.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#!/usr/bin/env python

DESCRIPTION = """
Author= IlFranz
This algorithm was used by Loki/LokiBot for API hashing
Sample SHA256: 75af30d10a4a60bb1b260a0f4f9e3410448bd81328737678937145aa88eee108
"""
TYPE = 'unsigned_int'

TEST_1 = 4064566081


def hash(data):
hash_value = 0xFFFFFFFF
for char in data:
hash_value ^= char
for _ in range(8):
if hash_value & 1:
hash_value ^= 0x4358AD54
hash_value >>= 1
return ~hash_value & 0xFFFFFFFF

0 comments on commit cd4a4d1

Please sign in to comment.