Comments (9)
Given that you have tried using 2 libraries, have you considered that perhaps your problem may be somewhere else?
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.
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.
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.
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.
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.
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.
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.
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.
Ah, thank you. I did update my build config and it worked. I appreciate your answer a lot!
from reloaded.injector.
Related Issues (13)
- Process.GetProcessByName() Inject Error HOT 1
- System.MissingMethodException: Method not found on injector initialisation HOT 3
- Allow to set bigger size for circular buffer HOT 1
- Injecting into.Net 6.0 HOT 1
- Error when injecting into CREATE_SUSPENDED process HOT 5
- What about run x64 code in the x86 process?
- Unable to find any other assemblies after injection
- Feature: Add injection from embed resource (or from bytes) HOT 1
- Shellcode is imploding on wine/lutris. HOT 6
- Allow creating process with injected DLL HOT 2
- WaitHandleCannotBeOpenedException "No handle of the given name exists"
- Eject doesn't unload injected dll from target process.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from reloaded.injector.