diff --git a/ReadMe.txt b/ReadMe.txt index 1a11c87..ddb37d8 100644 --- a/ReadMe.txt +++ b/ReadMe.txt @@ -9,4 +9,9 @@ 2024.10.15 烧录文件可能会加密,bin的第一个字节表示加密方式 第二个字节表示加密种子,加密算法根据这个种子来计算 - 好像加密方式都用的方式3 异或,所以取第一个字节与3异或就能得到加密种子 \ No newline at end of file + 好像加密方式都用的方式3 异或,所以取第一个字节与3异或就能得到加密种子 + +2025.8.11 + 添加计算bootram password的脚本 进入bootram之后,输入 f i 查看chip id + 然后运行python pass.py chip_id 计算password + 然后在bootram中输入 PSS password 来解除限制 \ No newline at end of file diff --git a/pass.py b/pass.py new file mode 100644 index 0000000..9b26c57 --- /dev/null +++ b/pass.py @@ -0,0 +1,25 @@ + +import sys +from bin.crc import CRC32 + + + + +def bootram_pssword(chip_id:str): + data=bytearray(b'Aerospace C.Power') + data+=bytearray(chip_id.encode('utf-8')) + off=64-len(data) + if(off>0): + data+=bytearray(b'\x5A'*off) + pss=CRC32(data) + # print(f"data={data} len={len(data)}") + print(f"bootram_pssword:{pss:08x}") + return pss + print(f"chip_id err.") + return 0 + + + +if __name__ == '__main__': + bootram_pssword(sys.argv[1]) +