Help! Network Hooking

imls01245

Platinian
Has anyone ever encountered a Network behavior in Unity Games and how do you hook it using LGL Mod Menu?
Is it the same as hooking on Mono Behavior? A Reply would help , TIA!

Dump:
C#:
public class PlayerInfoCtrl : NetworkBehaviour
{
// Fields , Methods, etc..
}
 
Hello, YES! It is connected in the same way as a regular MonoBehaviour, only it can contain certain "unusual" functions, like Rpc methods, using their calls you can do anything with other players to the extent of the game's capabilities
 
What "How?" How hooking?

Game "Los Angeles Crimes"

dump.cs
class PlayerControl : NetworkBehaviour
{
Offset: 0x39ABD4
private void Update() { }

[ClientRpcAttribute]
Offset: 0x3AE8C0
private void RpcUpdateMask(int _mask) { }
}
main.cpp:
this method "Update"
MSHookFunction((void *) getAbsoluteAddress(libName, 0x39ABD4), (void *) PlayerControl, (void **) & _Control);

rpcMask = (void (*)(void*,
int ))getAbsoluteAddress(libName, 0x3AE8C0);


void(*rpcMask)(void*, int);
void(*_Control)(void*);
void PlayerControl(void* pl)
{
if(pl!=NULL)
{
rpcMask(pl, value);

//if you need for other players , you need using playerList;
}
_Control(pl);
}
 
Back
Top Bottom