Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added lokibot hashing algorithm #69

Merged
merged 1 commit into from
Mar 4, 2025
Merged
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
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