Go Back   RunUO - Ultima Online Emulation > RunUO > Utility Support > Third Party Program Support

Third Party Program Support Misc support forum and advertisment forum for all RunUO related third party Utilities.

Reply
 
Thread Tools Display Modes
Old 08-16-2003, 09:59 PM   #1 (permalink)
 
Join Date: Jan 2003
Posts: 134
Default SpyUO - a C# UO packet hooker

SpyUO is a tool to see decrypted and decompressed packets sent and received by UO client.

It's divided into two parts:
- SpyUOLib.dll: this dll contains all packet hooking, Clients.cfg parsing, basic classes for packet reading and some defined packets.
- SpyUO.exe: this program uses SpyUOLib.dll to provide a GUI with some functionalities for packets data handling.

It requires the .Net Framework to run (http://msdn.microsoft.com/netframework).

Packets statistics are calculated as averages over the last 10 seconds (s = sent, r = received, T = total ).

Special thanks to Folko (http://uo.elitecoder.net) for providing Clients.cfg.
Ultima.dll is developed by Krrios (http://www.runuo.com).

--

Clients.cfg is updated to client version 5.0.1i.
Attached Files
File Type: zip SpyUO.zip (111.5 KB, 1356 views)
File Type: zip SpyUO-Source.zip (128.8 KB, 713 views)
__________________
Phenos - Lorenzo Castelli
E-Mail: gcastelli@racine.ra.it

Last edited by Phenos; 02-04-2006 at 08:53 AM.
Phenos is offline   Reply With Quote
Old 08-17-2003, 06:36 AM   #2 (permalink)
 
Join Date: Mar 2003
Location: Near a lava pool
Age: 8
Posts: 1,012
Default

Nice job! This is a good one
Arya is offline   Reply With Quote
Old 08-19-2003, 04:33 PM   #3 (permalink)
 
Join Date: Jan 2003
Posts: 134
Default

Thanks

I've updated to version 1.1, with some new functionalities.

I've added an option to export items in RunUO decorations format.
So basically you can generate all objects you have seen by adding exported SpyUO items file to Data\Decoration\*\ RunUO folder and using [decorate command. The exact behaviour of this option could be adjusted in Items.cfg file.

Then WorldItem, LocalizedMessage and LocalizedMessageAffix now show the name of the item (from tiledata) and the message (from cliloc.enu), extracted with Krrios' Ultima.dll (thanks for this tool ).
__________________
Phenos - Lorenzo Castelli
E-Mail: gcastelli@racine.ra.it
Phenos is offline   Reply With Quote
Old 08-20-2003, 01:42 PM   #4 (permalink)
 
Join Date: Jan 2003
Posts: 134
Default

Released 1.2 version.

Added definitions for gump, hits, stamina and mana packets.

Added a tool to generate gumps in RunUO format: just select the gump packet you wish to extract and click on "Tools-Extract gump" option.

Added an option to save logs in a typical hex editor format.
__________________
Phenos - Lorenzo Castelli
E-Mail: gcastelli@racine.ra.it
Phenos is offline   Reply With Quote
Old 08-20-2003, 04:49 PM   #5 (permalink)
 
Join Date: Jun 2003
Posts: 913
Default

Nice.
GoodVillain is offline   Reply With Quote
Old 08-26-2003, 03:10 AM   #6 (permalink)
 
Join Date: Mar 2003
Posts: 153
Send a message via ICQ to Menta2K
Default

thi si for encrypted or 'decrypted' clients ?
Menta2K is offline   Reply With Quote
Old 08-27-2003, 01:09 PM   #7 (permalink)
 
Join Date: Jan 2003
Posts: 134
Default

Quote:
Originally Posted by Menta2K
thi si for encrypted or 'decrypted' clients ?
It works with both versions.
Phenos is offline   Reply With Quote
Old 08-31-2003, 08:08 AM   #8 (permalink)
 
Join Date: Mar 2003
Posts: 153
Send a message via ICQ to Menta2K
Default

hmm thats very cool but .. i have one problem ...
i try on 4.0o 3D No crypted version and spyuo say
Packet pump error
Client not defined
then i install 2D version 4.0p2 the same Exaption
then i try 4.0p2 no crypted version .. again the same exeption
what i am doing wrong ?
10x in advance
Menta2K is offline   Reply With Quote
Old 08-31-2003, 12:38 PM   #9 (permalink)
 
Join Date: Jan 2003
Posts: 134
Default

Updated to 1.3 version.

Added properties packet reading (0xD6) and v4.0.0p support.

Quote:
Originally Posted by Menta2K
hmm thats very cool but .. i have one problem ...
i try on 4.0o 3D No crypted version and spyuo say
Packet pump error
Client not defined
then i install 2D version 4.0p2 the same Exaption
then i try 4.0p2 no crypted version .. again the same exeption
what i am doing wrong ?
10x in advance
3D clients are not supported because Clients.cfg doesn't have entries for them (anyway you could get them reading Clients_cfg_Tutorial.html).

4.0.0p in 2D should work fine with new Clients.cfg of SpyUO 1.3.
Phenos is offline   Reply With Quote
Old 08-31-2003, 06:51 PM   #10 (permalink)
 
Join Date: Mar 2003
Posts: 153
Send a message via ICQ to Menta2K
Default

10x alot
great work men
Menta2K is offline   Reply With Quote
Old 09-12-2003, 08:11 AM   #11 (permalink)
 
Join Date: Jun 2003
Posts: 304
Default

could you mind adding a column with the packet size in the next version..?
barakko is offline   Reply With Quote
Old 09-13-2003, 06:45 AM   #12 (permalink)
 
Join Date: Jan 2003
Posts: 134
Default

Quote:
Originally Posted by barakko
could you mind adding a column with the packet size in the next version..?
Uhm, what is the purpose?

If you want to read some undefined packets, I really suggest you to save in hex format and read the generated file. Then if you have some C# skill you can add the new packet definition in the code.
In fact SpyUO GUI is mainly designed to handle defined packets...
__________________
Phenos - Lorenzo Castelli
E-Mail: gcastelli@racine.ra.it
Phenos is offline   Reply With Quote
Old 09-13-2003, 06:50 AM   #13 (permalink)
 
Join Date: Jun 2003
Posts: 304
Default

that would be for testing the laggyness (?) of certain regions.
che palle scrivere in inglese quando siamo tutti italiani.
well in a few words that would be for checking how much bytes are sent to the client when I walk in some places I made.. because of dynamic items, mobiles, things like that :-/
for example I was wondering if a knight on a horse with a full plate was way more laggy than a troll or not
barakko is offline   Reply With Quote
Old 09-14-2003, 02:26 AM   #14 (permalink)
Forum Expert
 
TheOutkastDev's Avatar
 
Join Date: Sep 2002
Location: Houston, Texas
Age: 21
Posts: 3,933
Default

I must be a complete moron here but if i use the start option and select my client.exe right aftr i type in my username,pass and hit enter, the client is closed... So i start the client up, then use the attach and select CLIENT from the list menu and again, after i type my username, pass and hit enter, client closes... using the latest client.
TheOutkastDev is offline   Reply With Quote
Old 09-16-2003, 06:01 PM   #15 (permalink)
 
Join Date: Jan 2003
Posts: 134
Default

Quote:
Originally Posted by barakko
che palle scrivere in inglese quando siamo tutti italiani.
Eheh

Anyway I've released SpyUO 1.4.
Items.cfg has been changed to include doors and signs (in ignore list).
A packet length column has been added.
Some packets statistics calculated over the last 10 seconds are now shown on the title bar.


Quote:
Originally Posted by TheOutkastDev
I must be a complete moron here but if i use the start option and select my client.exe right aftr i type in my username,pass and hit enter, the client is closed... So i start the client up, then use the attach and select CLIENT from the list menu and again, after i type my username, pass and hit enter, client closes... using the latest client.
That's really odd...
What happens if you attach to a client already in game?
__________________
Phenos - Lorenzo Castelli
E-Mail: gcastelli@racine.ra.it
Phenos is offline   Reply With Quote
Old 09-16-2003, 11:26 PM   #16 (permalink)
Forum Expert
 
TheOutkastDev's Avatar
 
Join Date: Sep 2002
Location: Houston, Texas
Age: 21
Posts: 3,933
Default

Quote:
That's really odd...
What happens if you attach to a client already in game?
As soon as i try to walk, client closes. It seems, once it sends a packet and SpyUO tries to receive and log it, the client closes out.

I took a shortcut and instead of itializing the form, i kept it in a console and did all the other config methods ect.. just no main form present. I had it just open the process select box and config the packetpump. It attached and as soon as i tried to walk, it did the same thing it always does. Console generated this error:

[code:1]
Unhandled Exception: System.EntryPointNotFoundException: Unable to find an entry
point named OpenThread in DLL Kernel32.
at SpyUO.NativeMethods.OpenThread(DesiredAccessThread dwDesiredAccess, Boolea
n bInheritHandle, UInt32 dwThreadId)
at SpyUO.PacketSpy.SpyPacket(UInt32 threadId, Boolean send)
at SpyUO.PacketSpy.MainLoop()
at SpyUO.ProcessStarter.Start()
[/code:1]

If it has any impact, I use win98 SE.
TheOutkastDev is offline   Reply With Quote
Old 09-17-2003, 06:47 AM   #17 (permalink)
 
Join Date: Jan 2003
Posts: 134
Default

Quote:
Originally Posted by TheOutkastDev
If it has any impact, I use win98 SE.
Yeah sorry if I didn't catch the point.

OpenThread requires Windows 2000-3, XP or ME, so SpyUO works only under these operative systems...

I'm unsure if there can be a work around to run it under Windows 98...
__________________
Phenos - Lorenzo Castelli
E-Mail: gcastelli@racine.ra.it
Phenos is offline   Reply With Quote
Old 09-18-2003, 04:00 PM   #18 (permalink)
Forum Expert
 
TheOutkastDev's Avatar
 
Join Date: Sep 2002
Location: Houston, Texas
Age: 21
Posts: 3,933
Default

Quote:
Originally Posted by Phenos
OpenThread requires Windows 2000-3, XP or ME, so SpyUO works only under these operative systems...
TheOutkastDev is offline   Reply With Quote
Old 10-06-2003, 01:25 PM   #19 (permalink)
 
Join Date: Sep 2002
Posts: 622
Send a message via ICQ to raistlin Send a message via AIM to raistlin
Default

I'm not sure, but how do I use this? I would like to use it to copy where things are placed on an OSI shard.
How would I go about installing it?
raistlin is offline   Reply With Quote
Old 10-10-2003, 12:01 PM   #20 (permalink)
 
Join Date: Sep 2002
Posts: 622
Send a message via ICQ to raistlin Send a message via AIM to raistlin
Default

can anyone please tell me how to hell to use this? lol.
raistlin is offline   Reply With Quote
Old 10-10-2003, 12:18 PM   #21 (permalink)
Account Terminated
 
Join Date: Sep 2002
Age: 26
Posts: 3,846
Send a message via ICQ to Phantom Send a message via AIM to Phantom Send a message via MSN to Phantom
Default

Unzip the program

Launch the client

Login

Attache the SpyUO to the process you have to have NT based system ( 2000 XP 2003 ) in other words.

Then you wll start to log all packets, you can filt what you don't want but you will log every packet even packets that are sent to you once already.
Phantom is offline   Reply With Quote
Old 10-10-2003, 12:34 PM   #22 (permalink)
 
Join Date: Sep 2002
Posts: 622
Send a message via ICQ to raistlin Send a message via AIM to raistlin
Default

oh duh! i can't believe i didn't know this *was trying to run the source* dooh
raistlin is offline   Reply With Quote
Old 10-11-2003, 09:42 AM   #23 (permalink)
 
Join Date: Jan 2003
Posts: 134
Default

I've released version 1.5.

- Added Logs-Load option. It supports the two log formats of SpyUO as well as UOLog, UOPro and SphereAgent formats (and maybe even others). It may take some seconds to perform this operation.

- Added Extract Gump (Sphere) option, that creates a gump script for Sphere 0.99.

- Added support for arguments in Items.cfg.

- Updated Items.cfg to include closed doors conversions (opened doors are ignored).

- Added Must have none of these values option for Filter-Details.

- Added Save/Load options for filters configurations.

- Added ContainerDisplay (0x24) and ContainerContent (0x3C) packets support.

- Some bugfixes and improvements.
__________________
Phenos - Lorenzo Castelli
E-Mail: gcastelli@racine.ra.it
Phenos is offline   Reply With Quote
Old 10-15-2003, 06:08 PM   #24 (permalink)
Forum Expert
 
TheOutkastDev's Avatar
 
Join Date: Sep 2002
Location: Houston, Texas
Age: 21
Posts: 3,933
Default

still no functionality for win 98?
TheOutkastDev is offline   Reply With Quote
Old 10-16-2003, 05:59 PM   #25 (permalink)
 
Join Date: Jan 2003
Posts: 134
Default

Quote:
Originally Posted by TheOutkastDev
still no functionality for win 98?
No sorry... actually I don't know how can I avoid to use those API calls that aren't supported on Win98.
If anyone has some hits they are welcome.
Phenos is offline   Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 RC5