Hidden activators

General talk about editing, cheating, and deprotecting maps.

Moderator: Cheaters

1vann
Newcomer
Posts: 21
Joined: September 29th, 2010, 5:53 pm

Re: Hidden activators

Post by 1vann »

Here little script i wrote(python)

Code: Select all

def hash_breaker(h):
    for b in range(100):
        for c in range(100):
            a = h
            for i in [-15, 10, -3, -5, 16, -12, -13, 8, -13]:
                a, b, c = b, c, ((a ^ (b << i if i > 0 else (b & 0xFFFFFFFF) >> -i)) + b + c) & 0xFFFFFFFF

            l = a & 0xFF
            if l != 11:
                continue
            a1 = ((a - l) >> 8 & 0xFFFFFFFF).to_bytes(3, "little")
            b1 = ((b - 0x9e3779b9) & 0xFFFFFFFF).to_bytes(4, "little")
            c1 = ((c - 0x9e3779b9) & 0xFFFFFFFF).to_bytes(4, "little")
            s = c1 + b1 + a1

            ex = False
            for i in s:
                if 97 <= i <= 122 or i == 47 or i == 0:
                    ex = True
                    break
            if ex:
                continue

            return s
Hidden activator(collision) is

Code: Select all

`!|VAQ
owner123
Super Moderator
Posts: 1943
Joined: February 3rd, 2009, 11:28 pm
Been thanked: 1 time

Re: Hidden activators

Post by owner123 »

Thanks for posting your implementation. It's great. I made one too for fun, found this collision as well: ac3w2w7
test33
Newcomer
Posts: 1
Joined: July 26th, 2022, 2:00 pm

Re: Hidden activators

Post by test33 »

1vann wrote:Here little script i wrote(python)

Code: Select all

def hash_breaker(h):
    for b in range(100):
        for c in range(100):
            a = h
            for i in [-15, 10, -3, -5, 16, -12, -13, 8, -13]:
                a, b, c = b, c, ((a ^ (b << i if i > 0 else (b & 0xFFFFFFFF) >> -i)) + b + c) & 0xFFFFFFFF

            l = a & 0xFF
            if l != 11:
                continue
            a1 = ((a - l) >> 8 & 0xFFFFFFFF).to_bytes(3, "little")
            b1 = ((b - 0x9e3779b9) & 0xFFFFFFFF).to_bytes(4, "little")
            c1 = ((c - 0x9e3779b9) & 0xFFFFFFFF).to_bytes(4, "little")
            s = c1 + b1 + a1

            ex = False
            for i in s:
                if 97 <= i <= 122 or i == 47 or i == 0:
                    ex = True
                    break
            if ex:
                continue

            return s
Hidden activator(collision) is

Code: Select all

`!|VAQ
Script doesn't seam to work for me, trying to crack 836025351 would result in bytes 62 27 3d 5c 78 30 34 5c 78 62 61 56 7d 5e 5c 78 62 34 3c 5c 78 63 33 5c 78 62 30 5c 78 39 65 27
User avatar
devoltz
Co-Admin
Posts: 3133
Joined: March 23rd, 2016, 8:06 pm
Has thanked: 11 times
Been thanked: 53 times

Re: Hidden activators

Post by devoltz »

test33 wrote:Script doesn't seam to work for me, trying to crack 836025351 would result in bytes 62 27 3d 5c 78 30 34 5c 78 62 61 56 7d 5e 5c 78 62 34 3c 5c 78 63 33 5c 78 62 30 5c 78 39 65 27
Try using JAST stringhash break thing