mirror of
https://github.com/Ap0dexMe0/unixtract.git
synced 2026-07-16 05:04:22 +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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user