View previous topic :: View next topic |
Author |
Message |
Hatschi Master Cheater
Reputation: 2
Joined: 28 Jan 2010 Posts: 327
|
Posted: Sat Sep 12, 2015 1:55 am Post subject: [Mono] Get address of method behind two and more classes |
|
|
Currently we can go one class deep with CE, correct? Something like:
[Namespace] -> [Class] -> [Method]
I can get the adress by:
[Namespace].[Class]:[Method]
But rarely I've seen in Reflector or ILSpy the method is behind two or more classes, like:
[Namespace] -> [Class] -> [Class2] -> [Class3] -> [Method]
I've tried to get the adress in CE by:
[Namespace].[Class]:[Class2]:[Class3]:Method
but it didn't worked. Also some classes have special characters like:
<Parse>c__AnonStoreyBB
How do handle those?
|
|
Back to top |
|
 |
Dark Byte Site Admin
Reputation: 467
Joined: 09 May 2003 Posts: 25700 Location: The netherlands
|
Posted: Sat Sep 12, 2015 3:14 am Post subject: |
|
|
It's probably a just a method inherited from a superclass
E.g the Class AgeVerification can use the method get_tag from UnityEngine.Component because it inherits from UnityEngine.MonoBehaviour->UnityEngine.Behaviour->UnityEngine.Component
To find it you'll probably need Class3:Method to find it (Else Class:Method depending on how it's written)
Not sure what you mean with special characters. _ isn't really special, but it may indicate generated code by a code generator
_________________
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 |
|
 |
Hatschi Master Cheater
Reputation: 2
Joined: 28 Jan 2010 Posts: 327
|
Posted: Sat Sep 12, 2015 3:43 am Post subject: |
|
|
Chess Consequence Unit PhaseInfo get_DirectPhasePlinks
Chess is the namespace.
Consequence is a class
Unit is a class inside the Consequence class
PhaseInfo is a class inside unit class
get_DirectPhasePlinks is a function.
The following commands I've tried:
PhaseInfo:get_DirectPhasePlinks
Unit:PhaseInfo:get_DirectPhasePlinks
Consequence:Unit:PhaseInfo:get_DirectPhasePlinks
Chess.Consequence:Unit:PhaseInfo:get_DirectPhasePlinks
CE always says its not a valid address. Any idea?
I don't mean the _ symbol I mean the <> symbols. If you have a classname like <CalcPhaseInfo>c__AnonStoreyC7 and you're either trying to get to the address of the class or to make a code injection at the address of the class, CE always gives an error. I guessed it's because of the <> symbols?
|
|
Back to top |
|
 |
Dark Byte Site Admin
Reputation: 467
Joined: 09 May 2003 Posts: 25700 Location: The netherlands
|
Posted: Sat Sep 12, 2015 4:54 am Post subject: |
|
|
Ah yes, inner classes. I never looked into that, so it's not supported right now
_________________
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 |
|
 |
Hatschi Master Cheater
Reputation: 2
Joined: 28 Jan 2010 Posts: 327
|
Posted: Sat Sep 12, 2015 6:30 am Post subject: |
|
|
Okay, thanks
|
|
Back to top |
|
 |
|