etra0 / taskmgr-video

MIT License
41 stars 2 forks source link

Result::unwrap()` on an Err value: Os code 18 #1

Open DmitruMoth opened 4 years ago

DmitruMoth commented 4 years ago

Cannot inject dll to taskmgr, i also tried xenos for inject, but it still doesn't work. Log:

injector.exe Taskmgr.exe dll.dll
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Os { code: 18, kind: Other, message: "There are no more files." }', injector\src\main.rs:84:19
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

os info: windows 10 ltsc 1809 64 bit

etra0 commented 4 years ago

You have to put the full path for the dll, like

injector.exe Taskmgr.exe "C:\Users\MyUser\Documents\(...)\dll.dll"
DmitruMoth commented 4 years ago

Same error

PS D:\path\to\taskmgr-video> cargo run Taskmgr.exe "D:\path\to\taskmgr-video\target\debug\dll.dll"
    Finished dev [unoptimized + debuginfo] target(s) in 0.02s
     Running `target\debug\injector.exe Taskmgr.exe D:\path\to\taskmgr-video\target\debug\dll.dll`
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Os { code: 18, kind: Other, message: "There are no more files." }', injector\src\main.rs:84:19
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
error: process didn't exit successfully: `target\debug\injector.exe Taskmgr.exe D:\path\to\taskmgr-video\target\debug\dll.dll` (exit code: 101)
etra0 commented 4 years ago

Is your taskmgr already open when executing the injection? if not, open that first then run the injection!

DmitruMoth commented 4 years ago

Taskmgr close if i inject with the same error, i think problem is in dll, xenos also cannot inject

etra0 commented 4 years ago

there's two reasons I can think of:

  1. When you open the task manager, don't go to the performance tab until the injection is made
  2. Your windows build have different offsets

If it's the latter, I have no plans on increasing support since it is just a experiment.