[Release] MuOnline Packet Sniffer & Analizer

Junior Spellweaver
Joined
Dec 19, 2012
Messages
148
Reaction score
135
Currently I working on packet sniffer(like wpe but only read)

Features:
Capturing Packets between Client <-> Server,CS
Showing All Info About Packet: Len, Direction, Decoded Data If Needed, Counter ....

Analyze Data Structure - (Now I Working On It)

Some screen:
 
Initiate Mage
Joined
Jun 10, 2012
Messages
1
Reaction score
0
Re: MuOnline Packet Sniffer & Analizer

Can you share a source? I'd like to see how it works.
Yes, please do share. I'd also like to make something like this
 
Junior Spellweaver
Joined
Dec 19, 2012
Messages
148
Reaction score
135
Re: MuOnline Packet Sniffer & Analizer

I have small problem to read item packet F3 10 for main 0,97d. For example 22 BC 24 how to shift it to get double axe +7+s+l?

22 >> 4 & 0x0F =2
22 & 0x0F =2
But doubleaxe is 1 2
 
Last edited:
Kingdom of Shadows
Loyal Member
Joined
Jul 13, 2007
Messages
923
Reaction score
320
Re: MuOnline Packet Sniffer & Analizer

I have small problem to read item packet F3 10 for main 0,97d. For example 22 BC 24 how to shift it to get double axe +7+s+l?

22 >> 4 & 0x0F =2
22 & 0x0F =2
But doubleaxe is 1 2
You may want to use structs to get info from item's hex code as it's much easier than shifting and shits.
Here it is for versions with 16 bytes length hex code of items:
Code:
#pragma pack(push, 1)

struct ItemInfo
{
    /* 00 */BYTE id;            // ok
    union
    {
        struct
        {
            BYTE bAdd    : 2;
            BYTE bLuck    : 1;
            BYTE bLevel    : 4;
            BYTE bSkill    : 1;
        };
    /* 01 */    BYTE OptionData;    // ok
    };

    /* 02 */BYTE Durrability;    // ok
    /* 03 */DWORD Serial;        // ok

    union
    {
        struct
        {
            BYTE bAddE        : 1;
            BYTE bExeOp1    : 1;
            BYTE bExeOp2    : 1;
            BYTE bExeOp3    : 1;
            BYTE bExeOp4    : 1;
            BYTE bExeOp5    : 1;
            BYTE bExeOp6    : 1;
        };
        /* 07 */BYTE ExeOp;        // ok
    };

    /* 08 */BYTE AncientOp;

    union
    {
        struct
        {
            BYTE bOp380    : 4;
            BYTE bType    : 4;
        };
    /* 09 */BYTE type;            // ok
    };

    union
    {
        struct
        {
            BYTE bOpId        : 4;
            BYTE bOpType    : 4;
        };
    /* 10 */BYTE JoHOp;            // ok
    };

    /* 11 */BYTE SocketOp1;        // ok
    /* 12 */BYTE SocketOp2;        // ok
    /* 13 */BYTE SocketOp3;        // ok
    /* 14 */BYTE SocketOp4;        // ok
    /* 15 */BYTE SocketOp5;        // ok
};

#pragma pack(pop)

I never worked on 0.97d but if you tell me the DB version I may take a look today and post the struct.

EDIT: in your code you lack parenthesis and "AND" operation is applied on 4, the correct code would be "(22 >> 4) & 0x0F".
 
Junior Spellweaver
Joined
Jun 25, 2006
Messages
191
Reaction score
226
Re: MuOnline Packet Sniffer & Analizer

but if you get the source... you can add the packet editor feature xD

you cant, he said u can only "read" messages, not modify them.

i bet he is using some library like tcpdump to sniff all traffic, then filter all that data by ip/port and then getting ip src/dest mac info and layer 7 (data) and then show that info.

so, if this is the case (of course, no need to hook any dll, any function), you can only "watch" what u receive and send. if you want to send data, the easy way would be to hook WSASend or any other win32 api using the current socket. Otherwise, u will need to use Scapy or any other alternative to inject packets directly to the tcp stack. just kid stuff...

at least that's what i used to do.
 
Junior Spellweaver
Joined
Dec 19, 2012
Messages
148
Reaction score
135
Re: MuOnline Packet Sniffer & Analizer

You are in wrong forum, this is development section not how to cheat. I dont write anywhere that is for only reversing login packet lol. This sniffer is for learn how all packet are build, how looks communication between server<-> client, to try in future write basic server
 
Junior Spellweaver
Joined
Jun 25, 2006
Messages
191
Reaction score
226
Re: MuOnline Packet Sniffer & Analizer

this was a simple sniffer i coded a while ago, used to dump messages for another game, but it is the same idea.

for each message (or packet, whatever), u can create a class, and inherit a method from an interface, absrtact class etc, called, lets say, "AsText()" o just "Print()"

so for each message, you would see, the entire byte string and a description, like positions, ids, etc

for example



if u click one message, a description will appear in the grey textbox, showing the hex string and all the fields used in that message, like positions, names, ids, etc. I think that's the best way to do it, so u can see the actual flow, very quickly and if u want details, just "click" the message

pd: dont feed the trolls, they will eat you.

PD2: i think u already did what i've just said hahaha, one single message in listbox and then details in textbox. next time i'll spend more time reading instead of writing.
 

Attachments

You must be registered for see attachments list
Last edited:
Kingdom of Shadows
Loyal Member
Joined
Jul 13, 2007
Messages
923
Reaction score
320
Re: MuOnline Packet Sniffer & Analizer

Please stop posting things that don't contribute to this development!
 
Newbie Spellweaver
Joined
Apr 7, 2012
Messages
29
Reaction score
0
Re: MuOnline Packet Sniffer & Analizer

It looks interesting, hopefully you can get to release
 
Junior Spellweaver
Joined
Feb 17, 2012
Messages
120
Reaction score
18
Re: MuOnline Packet Sniffer & Analizer

looks good.. what happens if the packets are encrypted? client/server sided
 
Newbie Spellweaver
Joined
Apr 6, 2014
Messages
32
Reaction score
10
Re: MuOnline Packet Sniffer & Analizer

You can post here this programm?
 
Newbie Spellweaver
Joined
Dec 30, 2008
Messages
17
Reaction score
0
Re: MuOnline Packet Sniffer & Analizer

Hello.

I need your help to detect some packages that I capture, I am developing and I need to show the items in the list of characters and I have these packages:


C1 8F F3 00 04 00 04 00 42 6C 6F 6F 64 00 00 00 ........Blood...
00 00 00 90 01 20 30 16 16 DD DD DF 1B 6D B6 FB ..... 0......m..
00 00 04 00 00 00 00 00 20 01 61 73 64 73 61 64 ........ .asdsad
61 73 64 00 00 90 01 00 30 FF FF FF FF FF 00 00 asd.....0.......
00 F8 00 00 F0 FF FF FF 00 00 FF 02 42 6C 6F 6F ............Bloo
64 63 69 74 6F 00 00 0F 00 00 80 01 00 FF FF FF dcito...........
00 00 00 F8 00 00 00 CF FF FF 00 00 FF 03 42 6C ..............Bl
6F 6F 64 53 4D 00 00 00 00 90 01 00 10 FF FF FF oodSM...........
FF FF 00 00 00 F8 00 00 F0 FF FF FF 00 00 FF ...............


Can detect that the next packet belongs to the first character:

16 16 DD DD DF 1B 6D B6 FB 00 00 04 00 00 00 00 00

The items that the character has in the inventory are:
2 Bone Blade +13
Set Dragon Knight +13
Wings of Dragon +13
Red Fenrir

I need you to help me maybe with the logic of how to build that structure. Sorry for my bad english, I used the translator.
 
Junior Spellweaver
Joined
Dec 19, 2012
Messages
148
Reaction score
135
Re: MuOnline Packet Sniffer & Analizer

You going to have fun with big byte field