Chad Z
Chad Z
This has to do with a mismatch between 32-bit and 64-bit, right? I believe that SharpNeedle's bitness needs to match the bitness of the target process in order to work....
If you're targeting a 64-bit process, both Launcher.exe and Bootstrapper.dll must be 64-bit. ExampleProject.dll can remain Any CPU. In Visual Studio you can change this via Build > Configuration Manager....
@asim1337 are you able to inject into other 32-bit processes?
That does appear to be a 32-bit process, and Launcher.exe is able to enumerate the loaded dlls. My guess is that Bootstrapper.dll is missing because it was not successfully injected....
I'm still having trouble reproducing the problem on my end. What version of Windows are you using? (You can get the OS version and build number from winver.exe)
Ah, okay. I had initially developed this project on Windows 8 and never tested it on Windows 7. Bootstrapper tries to [load .Net 4.0](https://github.com/ChadSki/SharpNeedle/blob/master/src/Bootstrapper/Bootstrapper.cpp#L12) which isn't included in Win7 out...
Well we've narrowed things down considerably. Everything is 32-bit, it compiles correctly, and Launcher is even able to load Bootstrap. It really seems as though either [creating the remote string](https://github.com/ChadSki/SharpNeedle/blob/master/src/Launcher/Injection.cpp#L57-L62)...
No, this project is for injecting a DLL that does arbitrary things. It doesn't provide a general way of hooking functions. You could look into the Microsoft project "Detours", or...
I'm not familiar with stephwn reflective injector, can you link me? SharpNeedle invokes the managed dll using the [`ICLRRuntimeHost::ExecuteInDefaultAppDomain`](https://msdn.microsoft.com/en-us/library/ms164411(v=vs.110).aspx) method, and the dll argument is `LPCWSTR pwzAssemblyPath` which has to...
Didn't we add [this block of code](https://github.com/ErmiyaEskandary/Slither.io-bot/blob/develop/bot.user.js#L22-L54) for custom user bot settings, to prevent them from being overwritten by updates? Maybe we can add a nick field?