diff --git a/sparse-windows-infector/src/lib.rs b/sparse-windows-infector/src/lib.rs index a73d107..88933b2 100644 --- a/sparse-windows-infector/src/lib.rs +++ b/sparse-windows-infector/src/lib.rs @@ -349,7 +349,7 @@ where .write(true) .truncate(true) .create(true) - .open("test/target.exe")?; + .open(binary_path.as_ref())?; target.write_all(&headers_bytes)?; @@ -359,7 +359,6 @@ where let header = section_headers[section.section_header_idx]; println!("{:?}", std::str::from_utf8(&header.name)); - dbgX!(header.raw_data_ptr, curr_ptr); let padding_needed = header.raw_data_ptr as usize - curr_ptr; target.write_all(&vec![0; padding_needed])?;