Skip to content

Commit 91a19ff

Browse files
authored
Merge pull request #60 from bsendpacket/main
Add custom FNV-1a for LummaStealer
2 parents ec514df + c9a5c03 commit 91a19ff

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

algorithms/lumma_fnv1a.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
DESCRIPTION = "FNV1a hash with LummaStealer offset, seen in 0cf55c7e1a19a0631b0248fb0e699bbec1d321240208f2862e37f6c9e75894e7"
2+
TYPE = 'unsigned_int'
3+
TEST_1 = 2983287169
4+
5+
def hash(data):
6+
val = 0x268c190a
7+
for c in data:
8+
val = ((val ^ c) * 0x1000193) & 0xffffffff
9+
10+
return val

0 commit comments

Comments
 (0)