Update .gitignore

This commit is contained in:
João Victor
2024-08-08 13:46:44 -03:00
parent 2834d59846
commit 3fa6c3bd1c
2 changed files with 8 additions and 7 deletions

View File

@@ -1,9 +1,5 @@
use {
core::ffi::c_void,
crate::driver::open_driver,
shared::structs::TargetInjection,
std::ptr::null_mut,
windows_sys::Win32::{Foundation::CloseHandle, System::IO::DeviceIoControl}
crate::{driver::open_driver, utils::check_file}, core::ffi::c_void, shared::structs::TargetInjection, std::ptr::null_mut, windows_sys::Win32::{Foundation::CloseHandle, System::IO::DeviceIoControl}
};
pub fn injection_thread(ioctl_code: u32, pid: &u32, path: &String) {
@@ -13,6 +9,12 @@ pub fn injection_thread(ioctl_code: u32, pid: &u32, path: &String) {
path: path.to_string(),
pid: *pid as usize
};
if !check_file(path) {
eprintln!("File not found: {path}");
return;
}
let mut return_buffer = 0;
status = unsafe {
DeviceIoControl(

3
driver/.gitignore vendored
View File

@@ -1,3 +1,2 @@
/target
/src/backup
/src/memory
/src/backup