C# Class otloader.Utils

Exibir arquivo Open project: opentibia/loader

Public Methods

Method Description
GetClientProcessId ( ) : UInt32
PatchClientRSAKey ( string oldRSAKey, string newRSAKey ) : PatchResult
PatchClientServer ( string oldServer, string newServer, UInt16 port ) : PatchResult
PatchClientServer ( string oldServer, string newServer, UInt16 port, bool continousSearch ) : PatchResult
PatchMultiClient ( ) : bool
isClientUsingRSA ( ) : bool

Private Methods

Method Description
ByteArrayCompare ( byte a1, UInt32 startOffset, byte a2, UInt32 compareLength ) : bool
ClearAtomOwner ( string lpAtomName ) : bool
CloseHandle ( IntPtr hObject ) : Int32
DuplicateHandle ( IntPtr hSourceProcessHandle, IntPtr hSourceHandle, IntPtr hTargetProcessHandle, IntPtr &lpTargetHandle, UInt32 dwDesiredAccess, [ bInheritHandle, UInt32 dwOptions ) : bool
FindWindow ( string lpClassName, string lpWindowName ) : IntPtr
GetClientProcessHandle ( ) : IntPtr
GetMemoryRange ( IntPtr hProcess, UInt32 nIndex, UInt32 &nStartAddress, UInt32 &nEndAddress ) : bool
GetMemoryRange ( [ hProcess, [ nIndex, [ nStartAddress, [ nEndAddress ) : bool
GetOwnProcessHandle ( ) : IntPtr
GetWindowThreadProcessId ( IntPtr hWnd, UInt32 &lpdwProcessId ) : uint
OpenMutex ( UInt32 dwDesiredAccess, bool bInheritHandle, string lpName ) : IntPtr
OpenProcess ( UInt32 dwDesiredAccess, Int32 bInheritHandle, UInt32 dwProcessId ) : IntPtr
PatchClientServer ( IntPtr processHandle, IntPtr address, string newServer, UInt16 port ) : bool
PidOf ( string lpWindowName ) : Int32
ReadMemory ( IntPtr processHandle, IntPtr readPos, byte &buffer, UInt32 &bytesRead ) : bool
ReadProcessMemory ( [ hProcess, [ lpBaseAddress, [ lpBuffer, [ nSize, [ lpNumberOfBytesRead ) : Int32
ResizeByteArray ( byte &array, Int32 newSize ) : void
SearchBuffer ( byte buffer, UInt32 bufferCount, byte bytePattern, UInt32 &index ) : bool
SearchMemory ( IntPtr processHandle, byte bytePattern, IntPtr &outAddress ) : bool
SearchMemory ( IntPtr processHandle, byte bytePattern, IntPtr &outAddress, byte &buffer ) : bool
ToByteArray ( string s ) : byte[]
VirtualProtectEx ( IntPtr hProcess, IntPtr lpAddress, UIntPtr dwSize, UInt32 flNewProtect, UInt32 &lpflOldProtect ) : bool
WriteMemory ( IntPtr processHandle, IntPtr address, byte patchBytes ) : bool
WriteProcessMemory ( [ hProcess, [ lpBaseAddress, [ lpBuffer, [ nSize, [ lpNumberOfBytesWritten ) : Int32

Method Details

GetClientProcessId() public static method

public static GetClientProcessId ( ) : UInt32
return System.UInt32

PatchClientRSAKey() public static method

public static PatchClientRSAKey ( string oldRSAKey, string newRSAKey ) : PatchResult
oldRSAKey string
newRSAKey string
return PatchResult

PatchClientServer() public static method

public static PatchClientServer ( string oldServer, string newServer, UInt16 port ) : PatchResult
oldServer string
newServer string
port System.UInt16
return PatchResult

PatchClientServer() public static method

public static PatchClientServer ( string oldServer, string newServer, UInt16 port, bool continousSearch ) : PatchResult
oldServer string
newServer string
port System.UInt16
continousSearch bool
return PatchResult

PatchMultiClient() public static method

public static PatchMultiClient ( ) : bool
return bool

isClientUsingRSA() public static method

public static isClientUsingRSA ( ) : bool
return bool