lolp1 / Process.NET

A C# class library for interacting with processes.
332 stars 64 forks source link

64 Bit Support #11

Open 26chairs opened 6 years ago

26chairs commented 6 years ago

I really hate to log an issue to do this (sorry), but I can't seem to find an email address to contact you anywhere. I'm trying to inject a 64 bit module into a 64 bit process and it's not working. Is 64 bit support limited to the Process.NET64 Nuget package? The 64 bit package doesn't seem to have the latest changes, so before assuming that I need to use it if I need 64 bit support, I figured I'd ask. I'm thinking it's entirely possible I'm just doing something dumb.

lolp1 commented 6 years ago

@26chairs Nope, you are right there is an issue with injecting DLLS currently. The project has some lack in some areas for x64, currently detours and injecting are the main ones. Busy but will try to update the GitHub to latest version ASAP

lolp1 commented 6 years ago

Working on fixing all that in the next week or two.

26chairs commented 6 years ago

Neat. I really like the way the library is written and was able to learn a bunch by looking at the code; enough to do what I was trying to do anyways. Once injection works for x64 processes, I'll definitely have to look into replacing the stuff I threw together for the project I'm working on with your library instead.

johmarjac commented 5 years ago

Does AssemblyFactory.Execute() has issues on x64 too? I cannot seem to get it working, I get "Could not create Thread at 0x400000" Win32 Exception.

dga711 commented 5 years ago

Is this still a thing? Any library recommended for detours in x64?

Hi-ImKyle commented 5 years ago

Poking this issue because I would like this issue solved. sorry for the poke..

Ashlanfox commented 4 years ago

any news on the issue ?

adamk33n3r commented 3 years ago

I was trying to use the 64 bit version but ProcessSharp.Memory is null so when I try to create a detour i get a null reference exception

laurentksh commented 3 years ago

@adamk33n3r Sorry to say this but the author of the library seems to have abandoned this project which is quite sad since it's really useful..

adamk33n3r commented 3 years ago

@laurentksh ya it seems so :( do you know of any other good libraries that do detours? I know that microsoft has their own detours thing but it looked really clunky so I was loving the simplicity of this one. Any similar?

laurentksh commented 3 years ago

Nope, I too tried to do detours a few months ago but I ended up giving up because of an issue with the library.

lolp1 commented 3 years ago

@adamk33n3r @laurentksh

I just added support for x64/x86 detours for you guys :)

See Detour32/Detour64 classes below: https://github.com/lolp1/Process.NET/tree/master/src/Process.NET/Applied/Detours

laurentksh commented 3 years ago

wow that's very nice of you, thanks ! It seems you don't get notified unless we mention you is that right ? I had the same issue with the owner of another repo, everyone complained in an Issue that the project wasn't working anymore until I mentioned him and then he replied.. @lolp1

lolp1 commented 3 years ago

wow that's very nice of you, thanks ! It seems you don't get notified unless we mention you is that right ? I had the same issue with the owner of another repo, everyone complained in an Issue that the project wasn't working anymore until I mentioned him and then he replied.. @lolp1

I actually have seen the issues at some point, the problem is time and motivation. I just so happen to see this one right around when I was cleaning up some old code and had the updated version handy, so figured I'd include it.

I still want to add-in support for x64 DLL injection and remote code execution, as those are the two primary things lacking x64 support and are fairly straight forward to fix. The DLL injection issue for example is just due to using non IntPtr types in a couple places I think.

FlyCrafting commented 3 years ago

Don't you plan to update the package on Nuget?

laurentksh commented 3 years ago

Yeah and it would also be nice to have the project use .net standard 2.0, so that projects with .NET Core can use it !

jjbrunton commented 3 years ago

Any chance of getting x64 mnemonics support?