Частый гость
Регистрация: 10.09.2009
Сообщений: 19
Сказал спасибо: 7
Сказали Спасибо 0 раз(а) в 0 сообщении(ях)
|
взлом контрольной суммы
Всем Привет,
нужна помощь или подкиньте идею, я опят взламываю чужую систему, и снова ЕЕПРОМ. имеем три считанных оригинальных ЕЕПРОМа и три которые я смог найти методом перебора.
В этих всех примерах контрольная сумма 100% совпадает, проверял в железе!
Мое предположение, что здесь храниться две контрольные суммы, это последние два байта, и они от друг друга не зависят.
Для расчета контрольной суммы берётся каждый второй байт, например:
1. контрольная сумма (0x65): 0x8f, 0x97, 0x8a, 0x8d, 0x92, 0x9a, 0x8f, 0x88, 0х00 итд...
2. контрольная сумма (0x21): 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0х00 итд...
но это все предположения, и мне не удаётся найти алгоритм расчета контрольной суммы!
1. оригинальный
0x8f,0xff,0x8c,0xff,0x88,0xff,0x8c,0xff,0x87,0xff, 0x90,0xff,0x8d,0xff,0x8a,0xff,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,
0x91,0x01,0xba,0x01,0xda,0x01,0x9b,0x01,0x85,0x01, 0xa5,0x01,0xbe,0x01,0x9e,0x01,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x01,0x00,0x01,0x00,0x01,0x00,0x01,0x05,0x00, 0xff,0xff,0xf7,0xff,0xfa,0xff,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,
0x1c,0x00,0xf2,0xff,0xf0,0xff,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,
0xcf,0x0b,0x00,0x0c,0x00,0x00,0x00,0x00,0x74,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x07,0x00,0x0f,0x00,0x13,0x00,0x15,0x00, 0x16,0x00,0x19,0x00,0x19,0x00,
0x19,0x00,0x1d,0x00,0x16,0x00,0x0e,0x00,0x04,0x00, 0xf9,0xff,0xf8,0xff,0xfa,0xff,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,
0x09,0x2e,0x0c,0x00,0x09,0x2e,0x0c,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x88,0xd7
2. оригинальный
0x91,0xff,0x92,0xff,0x8c,0xff,0x97,0xff,0x97,0xff, 0x7e,0xff,0x89,0xff,0x8d,0xff,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,
0x9e,0x01,0x8e,0x01,0x9b,0x01,0x8e,0x01,0xa5,0x01, 0xd2,0x01,0xac,0x01,0xc6,0x01,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x01,0x00,0x01,0x00,0x01,0x00,0x01,0xf9,0xff, 0xfe,0xff,0xfe,0xff,0xfc,0xff,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,
0xe0,0xff,0x0d,0x00,0x0f,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,
0x81,0x0e,0x00,0x0c,0x00,0x00,0x00,0x00,0x71,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x01,0x00,0x03,0x00,0x01,0x00,0xfd,0xff, 0xee,0xff,0xdc,0xff,0xdb,0xff,
0xdb,0xff,0xdb,0xff,0xda,0xff,0xdc,0xff,0xdb,0xff, 0xe6,0xff,0xfb,0xff,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,
0xc2,0x89,0x00,0x00,0xc2,0x89,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x79,0x1f
3. оригинальный
0x8f,0xff,0x97,0xff,0x8a,0xff,0x8d,0xff,0x92,0xff, 0x9a,0xff,0x8f,0xff,0x88,0xff,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,
0xd2,0x01,0xc2,0x01,0x85,0x01,0x65,0x01,0xca,0x01, 0xac,0x01,0x6d,0x01,0x80,0x01,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x01,0x00,0x01,0x00,0x01,0x00,0x01,0xfd,0xff, 0x00,0x00,0xfd,0xff,0xfe,0xff,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,
0x1e,0x00,0xf1,0xff,0x0e,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,
0xcf,0x0b,0x00,0x0c,0x00,0x00,0x00,0x00,0x71,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0xfe,0xff,0x02,0x00,0x06,0x00, 0x07,0x00,0x08,0x00,0x04,0x00,
0x00,0x00,0x01,0x00,0x02,0x00,0x01,0x00,0x00,0x00, 0xff,0xff,0xfe,0xff,0xff,0xff,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,
0x90,0x09,0x03,0x00,0x90,0x09,0x03,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x65,0x21
3.1 методом перебора
0x8f,0xff,0x97,0xff,0x8a,0xff,0x8d,0xff,0x90,0xff,0x9a,0xff,0x8f,0xff,0x88,0xff,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,
0xd2,0x01,0xc2,0x01,0x85,0x01,0x65,0x01,0xca,0x01, 0xac,0x01,0x6d,0x01,0x80,0x01,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x01,0x00,0x01,0x00,0x01,0x00,0x01,0xfd,0xff, 0x00,0x00,0xfd,0xff,0xfe,0xff,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,
0x1e,0x00,0xf1,0xff,0x0e,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,
0xcf,0x0b,0x00,0x0c,0x00,0x00,0x00,0x00,0x74,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0xfe,0xff,0x02,0x00,0x06,0x00, 0x07,0x00,0x08,0x00,0x04,0x00,
0x00,0x00,0x01,0x00,0x02,0x00,0x01,0x00,0x00,0x00, 0xff,0xff,0xfe,0xff,0xff,0xff,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,
0x90,0x09,0x03,0x00,0x90,0x09,0x03,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x02,0x00,0x62,0x21
3.2 методом перебора
0x8f,0xff,0x97,0xff,0x8a,0xff,0x8d,0xff,0x92,0xff, 0x9a,0xff,0x8f,0xff,0x88,0xff,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,
0xd2,0x01,0xc2,0x01,0x85,0x01,0x65,0x01,0xca,0x01, 0xac,0x01,0x6d,0x01,0x80,0x01,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x01,0x00,0x01,0x00,0x01,0x00,0x01,0xfd,0xff, 0x00,0x00,0xfd,0xff,0xfe,0xff,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,
0x1e,0x00,0xf1,0xff,0x0e,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,
0xcf,0x0b,0x00,0x0c,0x00,0x00,0x00,0x00,0x74,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0xfe,0xff,0x02,0x00,0x06,0x00, 0x07,0x00,0x08,0x00,0x04,0x00,
0x00,0x00,0x01,0x00,0x02,0x00,0x01,0x00,0x00,0x00, 0xff,0xff,0xfe,0xff,0xff,0xff,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,
0x90,0x09,0x03,0x00,0x90,0x09,0x03,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x02,0x00,0x60,0x21
3.3 методом перебора
0x8f,0xff,0x97,0xff,0x8a,0xff,0x8d,0xff,0x92,0xff, 0x9a,0xff,0x8f,0xff,0x88,0xff,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,
0xd2,0x01,0xc2,0x01,0x85,0x01,0x65,0x01,0xca,0x01, 0xac,0x01,0x6d,0x01,0x80,0x01,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x01,0x00,0x01,0x00,0x01,0x00,0x01,0xfd,0xff, 0x00,0x00,0xfd,0xff,0xfe,0xff,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,
0x1e,0x00,0xf1,0xff,0x0e,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,
0xcf,0x0b,0x00,0x0c,0x00,0x00,0x00,0x00,0x71,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0xfe,0xff,0x02,0x00,0x06,0x00, 0x07,0x00,0x08,0x00,0x04,0x00,
0x00,0x00,0x01,0x00,0x02,0x00,0x01,0x00,0x00,0x00, 0xff,0xff,0xfe,0xff,0xff,0xff,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,
0x90,0x09,0x03,0x00,0x90,0x09,0x03,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x01,0x65,0x20
|