taskmgr-video icon indicating copy to clipboard operation
taskmgr-video copied to clipboard

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

Open DmitruMoth opened this issue 4 years ago • 5 comments

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

DmitruMoth avatar Jul 07 '20 19:07 DmitruMoth

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

injector.exe Taskmgr.exe "C:\Users\MyUser\Documents\(...)\dll.dll"

etra0 avatar Jul 08 '20 05:07 etra0

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)

DmitruMoth avatar Jul 08 '20 09:07 DmitruMoth

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

etra0 avatar Jul 08 '20 19:07 etra0

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

DmitruMoth avatar Jul 09 '20 08:07 DmitruMoth

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.

etra0 avatar Jul 09 '20 16:07 etra0