NefMoto

Technical => Flashing and Chipping => Topic started by: proel on March 26, 2020, 02:08:58 PM



Title: pcr2.1 seed key algo
Post by: proel on March 26, 2020, 02:08:58 PM
Hi,

is there an seed/key algo for this ecu.
i tried some calculations but without success

i have some correct seed/keys

seed: 84 A7 09 90
key : 84 A7 76 D3

seed: FB F6 A4 BE
key : FB F7 12 01

seed: AF 92 94 3D
key : AF 93 01 80

seed: 83 39 F4 1E
key:  83 3A 61 61



Title: Re: pcr2.1 seed key algo
Post by: gremlin on March 27, 2020, 09:15:25 AM
mov eax, Seed
for (i = 1; i <= 3; i++)
{
    ror eax, 1
    jno L0
    for (i = 1; i <= 6; i++)
    {
        sub eax, 0x06200617
        jno L1
        xor eax, 0x01200309
L1:
        ror eax, 1
    }
L0:
    for (i = 1; i <= 4; i++)
    {
        add eax, 0x74191119
    }
    ror eax, 1
    jno L2
    xor eax, 0x25010720
L2:
    rol eax, 1
    jno L3
    rol eax, 1
L3:
}
mov Key, eax
ret


Title: Re: pcr2.1 seed key algo
Post by: Geremia on March 29, 2020, 06:15:57 AM
key = seed+0x6D43, nothing fancy


Title: Re: pcr2.1 seed key algo
Post by: sanyagans on October 25, 2022, 11:34:20 AM
key = seed+0x6D43, nothing fancy
;D