I'm using vb 2008 epxress and want to know how to change the rsa key...
If someone know the address, it would be nice if you tell it me !
I'm using vb 2008 epxress and want to know how to change the rsa key...
If someone know the address, it would be nice if you tell it me !
Check this thread:
http://www.tpforums.org/forum/thread-7161.html
lol it's &H597610....
But I still don't know with what I have to replace it ;//
EDIT: I Tryied to replace it with:
But it don't get changed, lol.10912013296739942927886096050899554152823750290279 81291234687579372662914925764463307396960011106039 07230888610072655818825358503429057592827629436413 10856602909362821263595383668656267584972062078627 94310902180176810615217550567108238764764442605581 47179707119674283982419152118103759076030616683978 566631413
PS: Ip/Port Changing works for me fine...
because rsa address is protected, i give you an example to take a view (tibiaapi)
[code=vbnet]
public static bool WriteRSA(IntPtr handle, long address, string newKey)
{
IntPtr bytesWritten;
int result;
uint oldProtection = 0;
System.Text.ASCIIEncoding enc = new System.Text.ASCIIEncoding();
byte[] bytes = enc.GetBytes(newKey);
// Make it so we can write to the memory block
Util.WinApi.VirtualProtectEx(handle, new IntPtr(address), new IntPtr(bytes.Length), Util.WinApi.PAGE_EXECUTE_READWRITE, ref oldProtection);
// Write to memory
result = Util.WinApi.WriteProcessMemory(handle, new IntPtr(address), bytes, (uint)bytes.Length, out bytesWritten);
// Put the protection back on the memory block
Util.WinApi.VirtualProtectEx(handle, new IntPtr(address), new IntPtr(bytes.Length), oldProtection, ref oldProtection);
return (result != 0);
}[/code]
links:
http://code.google.com/p/tibiaapi/source/browse/trunk/tibiaapi/Util/WinApi.cs
http://code.google.com/p/tibiaapi/source/browse/trunk/tibiaapi/Util/Memory.cs