Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Hacking using c# and injections?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking
View previous topic :: View next topic  
Author Message
JMC17
How do I cheat?
Reputation: 0

Joined: 26 Nov 2015
Posts: 7

PostPosted: Thu Mar 17, 2022 9:18 am    Post subject: Hacking using c# and injections? Reply with quote

I've been hacking using ASM injections and it's a lot of fun, but lately I've been running into functions that processes a lot of important variables.
I made myself an ASM script to lay them into a codecave so I can point to them but it's tedious. I would much rather be able to inject one of my c# DLLs and reference it in the auto-assembler.

Is that possible with CE? Referencing a c# DLL in the auto-assembler to simplify the coding aspect?
I understand I can just do it all in Visual Studio but I really like using Cheat Engine's tools. If I could hug DarkByte I would.
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 470

Joined: 09 May 2003
Posts: 25785
Location: The netherlands

PostPosted: Thu Mar 17, 2022 9:46 am    Post subject: Reply with quote

Does the target process use .net ? That would make it easier to inject that dll into the target process and then reference the method
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
JMC17
How do I cheat?
Reputation: 0

Joined: 26 Nov 2015
Posts: 7

PostPosted: Thu Mar 17, 2022 2:31 pm    Post subject: Reply with quote

Yes I believe so. The game I'm having fun with is Icarus. It's using Unreal Engine 4.

Do I reference the method using lua or asm?
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 470

Joined: 09 May 2003
Posts: 25785
Location: The netherlands

PostPosted: Thu Mar 17, 2022 3:27 pm    Post subject: Reply with quote

If the target is running .net then you can use injectDotNetDLL(path) to inject the .net dll

Then use the normal .net functions to find the image of the dll and the method address

but I don't think unreal engine 4 uses .net so that likely won't work.

Perhaps you could make it load .net I'll look into that

_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
Dark Byte
Site Admin
Reputation: 470

Joined: 09 May 2003
Posts: 25785
Location: The netherlands

PostPosted: Sat Mar 19, 2022 6:21 am    Post subject: Reply with quote

You can use https://forum.cheatengine.org/viewtopic.php?p=5777686#5777686



and then use injectDotNetDLL to inject your c# dll

you'll have to jit the target method first, so launch the invasive dotnet data collector : LaunchDotNetInterface() and then you can use
dotnet_findDotNetMethodAddress(namespace, classname, methodname, modulename) to get the address of your method

_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
JMC17
How do I cheat?
Reputation: 0

Joined: 26 Nov 2015
Posts: 7

PostPosted: Mon Mar 21, 2022 7:23 am    Post subject: Reply with quote

Thank you, you're the best.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites