fdsd
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user