Giter Site home page Giter Site logo

Comments (9)

Sewer56 avatar Sewer56 commented on May 23, 2024

Given that you have tried using 2 libraries, have you considered that perhaps your problem may be somewhere else?

image

I copied your code to a new empty .NET 5 Project, replacing Minecraft (not installed on this laptop) with notepad and had no issues.

I injected Reloaded-II because it was the first DLL that came into my head.

from reloaded.injector.

 avatar commented on May 23, 2024

Hm, I'm using some try-catch loops (whenever I try to inject it, the catch always triggers). I didn't find a way to remove it otherwise without the program crashing.

from reloaded.injector.

Sewer56 avatar Sewer56 commented on May 23, 2024

When thinking about injection problems; the following things typically come to mind:

  • Target process running as Admin but your process is not running as admin.

  • A DLL required by the DLL you are injecting cannot be found. (e.g. vcruntime140.dll if you are missing Visual C++ Runtime).
    Hint: Dependency Walker

  • Interference from Antivirus software etc.

I know it's not much of a hint but it's better than nothing :P

The result of GetLastError may possibly also be useful but with how this library's built it's not an option.

from reloaded.injector.

 avatar commented on May 23, 2024

My source code is available if you want to take a quick check on it (if you have the time)
https://github.com/AcaiBerii/BootJect
Otherwise, I do have an admin script in my manifest. (<requestedExecutionLevel level="requireAdministrator" uiAccess="false" />), leftover code from my experiments with Memory.DLL. My antivirus is not running at the moment and not giving me any notifications of the sort.

I do believe that the process I'm trying to inject the DLL into has it's own anticheat, but it may not be true (Minecraft: Windows 10 Edition). I'm making a mod for it and it should work.
Otherwise, I will try another app to inject my dlls into. I did hear you tried Notepad, so I will try that next. Thank you for your time!

from reloaded.injector.

 avatar commented on May 23, 2024

Ah, never mind, I see now. My program is coded in x64, and the DLL injection is meant for x32/x86. Sorry!

from reloaded.injector.

Sewer56 avatar Sewer56 commented on May 23, 2024

Note: Unlike most libraries, this library does support injecting into x86 processes from an x64 process (but not the other way around).

If you look at the library's Unit Tests, you should see such is the case.

from reloaded.injector.

 avatar commented on May 23, 2024

I got an error from the try-catch loop with an exception this time:
System.ComponentModel.Win32Exception (0x800004005): A 32 bit processes cannot access modules of a 64 bit process.
So that would mean the library is x32? I couldn't find any other way to find this out.

from reloaded.injector.

Sewer56 avatar Sewer56 commented on May 23, 2024

Hint: It means your program is running as 32-bit.

If you're working with the old .NET Framework and compiling under AnyCPU, I suggest googling the term "Prefer 32-bit"; it's on by default.

from reloaded.injector.

 avatar commented on May 23, 2024

Ah, thank you. I did update my build config and it worked. I appreciate your answer a lot!

from reloaded.injector.

Related Issues (13)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.