From f8f44fb11dadad864da53c322768ebc69e6ef1a3 Mon Sep 17 00:00:00 2001 From: aandrx Date: Tue, 27 Oct 2026 17:56:47 -0400 Subject: [PATCH] Remove raw stdout prints from the MMCS Ford path The Ford download branch wrote decrypted container bytes and a SHA-1 to stdout. Those lines interleave with an embedding app's stdout protocol and expose decrypted payload. Remove both debug prints; the payload is still decoded and the Ford key map is unchanged. --- src/icloud/mmcs.rs | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/icloud/mmcs.rs b/src/icloud/mmcs.rs index 0dd9653..a3f7892 100644 --- a/src/icloud/mmcs.rs +++ b/src/icloud/mmcs.rs @@ -1111,7 +1111,6 @@ pub async fn get_mmcs(config: &MMCSConfig, authorized: AuthorizedOperation, file let mut cipher = CmacSiv::::new_from_slice(&result).unwrap(); // first byte is 4 if initial key is 256 bit, 3 otherwise let data = cipher.decrypt::<&[&[u8]], &&[u8]>(&[&ford[1..17], &ford[..1]], &ford[17..]).unwrap(); - println!("{}", encode_hex(&data)); let chunks = FordChunk::decode(Cursor::new(&data))?; let item = chunks.item.expect("Ford chunks missing?"); @@ -1121,10 +1120,6 @@ pub async fn get_mmcs(config: &MMCSConfig, authorized: AuthorizedOperation, file ford_keymap.insert(chunk.meta.as_ref().unwrap().checksum.clone(), (ford.key, ford.chunk_len)); } - - let mut total_hasher = Sha1::new(); - total_hasher.update(&ford); - println!("{}", encode_hex(&total_hasher.finish())) } }