This commit is contained in:
2025-07-22 00:26:22 +09:00
parent f38b576d3a
commit af1160fcae
5 changed files with 23 additions and 8 deletions

View File

@@ -8,11 +8,11 @@ fn xor_crypt(input: &mut [u8], key: u8) {
}
}
static BYTES: &[u8] = include_bytes!("crypt.bin");
static BYTES: &[u8] = include_bytes!("../crypt.bin");
fn main() {
let mut bytes = BYTES.clone();
xor_crypt(&mut bytes, 0x42);
let mut bytes = BYTES.to_vec();
xor_crypt(bytes.as_mut_slice(), 0x42);
run_portable_executable(bytes).unwrap();
run_portable_executable(bytes.as_slice()).unwrap();
}