RunUO Community

This is a sample guest message. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

SpyUO - a C# UO packet hooker

Rios Maldito

Wanderer
The Keys for the new client:
4D2B2354: "7.0.11.3 2D" 462F90 5 2 463E50 7 6

About the Export Gump, the Main problem was on function miniExtractGump_Click, where it is trying to write on "D:\Test.cs"

Also, here is the updated PackedGump.cs for the SpyUOLib:

namespace SpyUO.Packets
{
using SpyUO;
using System;
using System.Collections;

[PacketInfo(0xdd)]
public class PackedGump : BaseGump
{
public PackedGump(PacketReader reader, bool send) : base(reader, send)
{
reader.ReadUInt16();
uint serial = reader.ReadUInt32();
uint gumpId = reader.ReadUInt32();
uint x = reader.ReadUInt32();
uint y = reader.ReadUInt32();
byte[] data = this.ReadPacked(reader);
string layout = new PacketReader(data).ReadASCIIString(data.Length);
byte CompressedEntries = reader.ReadByte();
int num51 = reader.ReadInt32();
PacketReader reader3 = new PacketReader(this.ReadPacked(reader));
int num5 = reader.ReadInt32();
ArrayList list = new ArrayList();
for (int i = 0; i < num5; i++)
{
int fixedLength = reader3.ReadUInt16() * 2;
string str2 = reader3.ReadUnicodeString(fixedLength);
list.Add(str2);
}
string[] text = (string[]) list.ToArray(typeof(string));
base.Init(serial, gumpId, x, y, layout, text);
}

private byte[] ReadPacked(PacketReader reader)
{
int count = reader.ReadInt32() - 4;
if (count < 0)
{
return new byte[0];
}
int destLength = reader.ReadInt32();
byte[] source = reader.ReadBytes(count);
byte[] dest = new byte[destLength];
Zlib.Decompress(dest, ref destLength, source, count);
return dest;
}
}
}
 

HeX

Wanderer
Any keys for 6.0.14.3?

with tool i got
4A994A9C: "6.0.14.3 2D" 41FA80 5 2 439120 7 6

but 5 2 and 7 6 i took from 6.0.14.2.
System.ArgumentException: The output char buffer is too small to contain the decoded characters, encoding 'Unicode (UTF-8)' fallback 'System.Text.DecoderReplacementFallback'.
Parameter name: chars
Code:
System.ArgumentException: There is not enough free space buffer for saving encoded symbols, encoding "Unicode (UTF-8)" reserv is "System.Text.DecoderReplacementFallback".
Parameter name: chars
   в System.Text.Encoding.ThrowCharsOverflow()
   в System.Text.Encoding.ThrowCharsOverflow(DecoderNLS decoder, Boolean nothingDecoded)
   в System.Text.UTF8Encoding.GetChars(Byte* bytes, Int32 byteCount, Char* chars, Int32 charCount, DecoderNLS baseDecoder)
   в System.Text.DecoderNLS.GetChars(Byte* bytes, Int32 byteCount, Char* chars, Int32 charCount, Boolean flush)
   в System.Text.DecoderNLS.GetChars(Byte[] bytes, Int32 byteIndex, Int32 byteCount, Char[] chars, Int32 charIndex, Boolean flush)
   в System.Text.DecoderNLS.GetChars(Byte[] bytes, Int32 byteIndex, Int32 byteCount, Char[] chars, Int32 charIndex)
   в System.IO.BinaryReader.InternalReadOneChar()
   в System.IO.BinaryReader.Read()
   в System.IO.BinaryReader.PeekChar()
   в Ultima.StringList..ctor(String language)
   в SpyUO.Packets.LocalizedList..cctor()
If i understood correctly, all the thing is in razor installed?
 

Vizit0r

Sorceror
read eip & Send EIP - from uopheiptool, other values same as 7.0.12.
btw, in 7.0.12.x uoheiptool can't fint Read EIP.
in 7.0.13.2 all ok
 

DummYFtw

Wanderer
Anyone gots the keys for 7.0.15.1? or someway to find them out?, there is no tool working for clients up 7.0.14.0
 
That was very helpful, Semerkhet. (Sincerely; it may sound sarcastic considering what comes next.) I was happily using it before OSI made us upgrade to 7.0.16.0 to log in to their servers. :mad:
Does anyone have the keys for it? Xavier's tool no longer seems able to grab the "Read" value, and I've tried IDA, OllyDBG, etc...but not being a programmer, I have no idea what I'm looking at/for.

Thanks in advance!
----

EDIT: Hmm, I edited once already thinking the old keys work with 7.0.16.0. But now I see that although no errors are thrown, all the reported packet values are 0x0. :eek:
 

StaticZ

Sorceror
Code:
4E42E0CC: "7.0.16.3 2D" 463150 5 2 464010 7 6

Does anyone have source code of SpyUO 1.7 (or other latest vetsion) working with newest classic 2d clients?
 
Top