kgamecarter / ChameleonMiniApp

ChameleonMini Android Client
GNU General Public License v3.0
25 stars 5 forks source link

The App hava a bug! #5

Closed xianglin1998 closed 4 years ago

xianglin1998 commented 5 years ago

on some device(Rev E), the detection data is encrypted,i don't if you know, if you don't know, i think, the bug is begins at (encrypted detection data),so , your app can't to get correct datas, you need to decrypt data using function: (c#) static void DecryptData(byte[] enc_arr, uint key, int size) { var arr = new byte[size]; Array.Copy(enc_arr, arr, size);

        for (int i = 0; i < size; i++)
        {
            int s = arr[i];
            var t = size + key + i - size / key ^ s;
            enc_arr[i] = (byte)t;
        }
    }

ps: the decrypt function only working on the rev e! finally,if your app no such problem, may i am using old version, otherwise , plz check! :)

xianglin1998 commented 5 years ago

sup: // Decrypt data, with key 123321, length 208 DecryptData(bytes, 123321, 208); the key is 123321, decrypt len is 208(datas)!

kgamecarter commented 5 years ago

I think I have decrypted. https://github.com/kgamecarter/ChameleonMiniApp/blob/2f2ba12ae298ce8d798087901ae0148931b4bbf3/lib/views/home/slotView.dart#L140

https://github.com/kgamecarter/ChameleonMiniApp/blob/2f2ba12ae298ce8d798087901ae0148931b4bbf3/lib/services/chameleonClient.dart#L266

xianglin1998 commented 5 years ago

:),haha. i can't decrypt it may be other reasons. thank you.------------------ 原始邮件 ------------------ 发件人: "kgame"notifications@github.com 发送时间: 2019年4月26日(星期五) 下午4:16 收件人: "kgamecarter/ChameleonMiniApp"ChameleonMiniApp@noreply.github.com; 抄送: "xianglin1998"64101226@qq.com;"Author"author@noreply.github.com; 主题: Re: [kgamecarter/ChameleonMiniApp] The App hava a bug! (#5)

I think I have decrypted. https://github.com/kgamecarter/ChameleonMiniApp/blob/2f2ba12ae298ce8d798087901ae0148931b4bbf3/lib/views/home/slotView.dart#L140

https://github.com/kgamecarter/ChameleonMiniApp/blob/2f2ba12ae298ce8d798087901ae0148931b4bbf3/lib/services/chameleonClient.dart#L266

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

kgamecarter commented 5 years ago

Is there use Chameleon Mini Rebooted GUI mfkey32 success?

xianglin1998 commented 5 years ago

:) oh, is working on the rebooted gui, i can get available key,so i am very puzzled, and i can get key using mfkey32 from pm3 tools, the datas from chameleon reve, is decrypted。------------------ 原始邮件 ------------------ 发件人: "kgame"notifications@github.com 发送时间: 2019年4月26日(星期五) 下午4:31 收件人: "kgamecarter/ChameleonMiniApp"ChameleonMiniApp@noreply.github.com; 抄送: "xianglin1998"64101226@qq.com;"Author"author@noreply.github.com; 主题: Re: [kgamecarter/ChameleonMiniApp] The App hava a bug! (#5)

Is there use Chameleon Mini Rebooted GUI mfkey32 success?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

kgamecarter commented 4 years ago

ref #9 應該可以用了

kgamecarter commented 4 years ago

如果還有問題就再Open這個issue