Professional Documents
Culture Documents
当前可用的工具:
打包 MStar 垃圾箱固件
从 MBOOT 中提取密钥
该工具用于从 MBOOT 获取 AES 和公共 RSA 密钥。加密/解密需要 AES 密钥 boot.img 和 recovery.img 映像。
使用 AESCRYPT2 工具。
Usage: extract_keys.py <path to mboot> [<folder to store keys>] [<key bank offset>] [<key bank
size>]
Defaults:
<folder to store keys> keys
<key bank offset> 0x168e00
<key bank size> 0x450
Example: extract_keys.py ./unpacked/MBOOT.img
Example: extract_keys.py ./unpacked/MBOOT.img ./keys 0x169e00 0x450
加密/解密分区
要加密映像,请使用:
加密分区并生成签名
Usage: secure_partition.py <file to encrypt> <AES key file> <RSA private key file> <RSA public
key file> <output encrypted file> <output signature file>
Example: secure_partition.py ./pack/boot.img ./keys/AESbootKey ./keys/RSAboot_priv.txt
./keys/RSAboot_pub.txt ./pack/boot.img.aes ./pack/bootSign