Generation

generate functionTue, 17 Jan 2023

Honda accord rolling code pwn

void rolling_code(byte* buff, byte* rbuff, uint8_t len) { uint8_t r = 0x63; uint16_t c = 0x16; uint8_t c1 = c >> 8; uint8_t c2 = c & 0xff; for(int i = 0; i < len; ++i) { rbuff[i] = buff[i]; for(int j = 0; j < 8; ++j) { if(c1 & 0x01) { c1 ^= 0x18; c1 >>= 1; c1 |= 0x80; } else { c1 >>= 1; } } rbuff[i] ^= c1; rbuff[i] ^= r; } } void rolling_code(byte* buff, byte* rbuff, uint8_t len) { uint8_t

Questions about programming?Chat with your personal AI assistant