mirror of
https://github.com/Ap0dexMe0/unixtract.git
synced 2026-07-15 21:00:03 +02:00
pfl_upg: fix false key detection in some fws, add devkey
This commit is contained in:
@@ -26,7 +26,7 @@ pub fn try_find_key(sig: &[u8], ciphertext: &[u8]) -> Result<Option<(String, [u8
|
||||
None => continue, //there is no 0, continue
|
||||
};
|
||||
let fname = &dec_ciphertext[..end];
|
||||
if fname.is_ascii() { //is ascii filename
|
||||
if fname.len() > 1 && fname.is_ascii() { //is ascii filename
|
||||
result = Some((name.to_string(), aes_key.try_into().unwrap()));
|
||||
break
|
||||
}
|
||||
|
||||
@@ -61,6 +61,9 @@ pub static PFLUPG: &[(&str, &str)] = &[
|
||||
("sony_M6", "C6283DBEE4D0C9B39B32760A036109FA04999174E6F259959EA66E5AFB4202B74ACACF7389AF00CCAE6AD2FD16CBCA7A100258EC43360C63DC4BFD81C613A3B5CDFA2FF3C7F797E2617EEDBFD4A6F1DEAC3E85076FAE9BF18C35AC4C7DD0EE9510B697615A415A2B69A7FAA24CB433297039ECA23F6E52CBA61BADEC621CECFD"),
|
||||
("sony_M7", "CAFA1ECA418A4D5575E9F099E6BCB0083B1A8FC8E47FC7A7779D5BC31D6F84BB191DAF05037FE9F67F1F12401D9AEBABE892D121189C76C6962374AA7DF3EE1DD07994DFD97B150A3E3EFB146BAF9A483F3536B238CED429064DCC087803C1627996F5DBBE23A5E69114F76B55D7CB08C65B5CC81160D4E7FFB9A8C49E724B65"),
|
||||
("sony_M8", "ACE08E69569094B1B1A37630986A6F0D689D346471E76018889F610B05B3EB32DFAFE1FD9514EE40E75320E22230F2ADCE8B38C8680DBF013C5D3056033C2647F3DFC1B80D4BCD7FBBCC1FBB665B9D83807E0EF26D15AF1BE8B980F65E139DEE286FE7E3580DAC27C03C6F50AA2233C7BA25C47824DE52BB119F44AD3C80CB71"),
|
||||
|
||||
//development key, although works for some prod fws
|
||||
("devkey", "B9C9A3129EF081D0D4C13E96CF0FF83B85C4B18B57614E72ABBC22A34E6E1C3DD1814AD10E6B347D86325A05158293AF2C81BB1EEDB2EFEFCCDF841626DF7DC3DAC8ED481F596CA244E9C98CCDC94A24BD46ED3F8508785B3F4E317781F911AA1B7455FA856CF1BDD2BA70D3062031DF8E645E376626A581F537DE841851EBED")
|
||||
];
|
||||
|
||||
//pana dvd keys (no AES)
|
||||
|
||||
Reference in New Issue
Block a user