Register for your free account! | Forgot your password?

Go Back   elitepvpers > Popular Games > Silkroad Online > SRO Coding Corner
You last visited: Today at 17:36

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[HELP]Question regarding sending packets

Discussion on [HELP]Question regarding sending packets within the SRO Coding Corner forum part of the Silkroad Online category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jul 2012
Posts: 14
Received Thanks: 0
[HELP]Question regarding sending packets

Hello EPVPers,

I've been messing around with the packets lately using the source of the plus notice clientless which works on .net, anyway...
I get most of the job done easily, but when it comes to 0x704C (Inventory item usage I believe) it starts being a ***** or my braincells are just limited but oh well, everyone been to the point where he brainstroms trying to learn something new with lots of failures, which brought me here, now my question is:

Why when I try to send a packet to use an item(global message item) it sometimes disconnects me or just doesn't do anything at all, here's what I got so far:

0x704C requires encryption which is why I set it to true, 10 is where the item is located inside the inventory(atleast what I think it is, although the item is in the first row, 4th slot from the left which means:
[1st][2nd][3rd][HERE])

237 is the decimal of ED(item mall)
29 is the item's index or something? I'm not sure
and the rest is self explanatory.

If you've found out what is possibly wrong or what I'm missing, I'd appreciate your help, cheers.
moadif is offline  
Old 04/07/2015, 11:09   #2
 
elite*gold: 0
Join Date: Aug 2009
Posts: 152
Received Thanks: 11
try 0x10 in hex = 16 in decimal
tarek1500 is offline  
Thanks
1 User
Old 04/07/2015, 11:51   #3
 
elite*gold: 8
Join Date: Sep 2014
Posts: 625
Received Thanks: 178
Sniff the packet and post it here.
qqdev is offline  
Old 04/07/2015, 16:43   #4
 
elite*gold: 0
Join Date: Jul 2012
Posts: 14
Received Thanks: 0
Quote:
Originally Posted by tarek1500 View Post
try 0x10 in hex = 16 in decimal
Oh, yeah I forgot to convert it thanks for the heads up xD
moadif is offline  
Old 04/07/2015, 16:49   #5
 
elite*gold: 0
Join Date: Aug 2009
Posts: 152
Received Thanks: 11
any time
tarek1500 is offline  
Old 04/08/2015, 13:21   #6
 
EurybiX's Avatar
 
elite*gold: 4
Join Date: Apr 2015
Posts: 98
Received Thanks: 69
Quote:
Originally Posted by moadif View Post
Hello EPVPers,

I've been messing around with the packets lately using the source of the plus notice clientless which works on .net, anyway...
I get most of the job done easily, but when it comes to 0x704C (Inventory item usage I believe) it starts being a ***** or my braincells are just limited but oh well, everyone been to the point where he brainstroms trying to learn something new with lots of failures, which brought me here, now my question is:

Why when I try to send a packet to use an item(global message item) it sometimes disconnects me or just doesn't do anything at all, here's what I got so far:

0x704C requires encryption which is why I set it to true, 10 is where the item is located inside the inventory(atleast what I think it is, although the item is in the first row, 4th slot from the left which means:
[1st][2nd][3rd][HERE])

237 is the decimal of ED(item mall)
29 is the item's index or something? I'm not sure
and the rest is self explanatory.

If you've found out what is possibly wrong or what I'm missing, I'd appreciate your help, cheers.


What you try to do actually?
EurybiX is offline  
Old 04/08/2015, 15:29   #7
 
elite*gold: 0
Join Date: Aug 2009
Posts: 152
Received Thanks: 11
Use global.
tarek1500 is offline  
Old 04/09/2015, 18:06   #8
 
elite*gold: 0
Join Date: Jul 2012
Posts: 14
Received Thanks: 0
I have another question:

I noticed something today while sniffing packets and playing around, this is the packet for exchanging:
Code:
[S -> C][3080]
01                              
52 43 00 00
52 keeps changing depending on the character, so I think it's something like an ID which is assigned to the character on login (And it changes everytime).
Now my question is, is there a way to find the character name using that ID? Is there a packet I can send using that ID that could possibly return the character name?
Cheers.
moadif is offline  
Old 04/09/2015, 19:15   #9
dotCom
 
Devsome's Avatar
 
elite*gold: 9842
The Black Market: 107/0/0
Join Date: Mar 2009
Posts: 16,840
Received Thanks: 4,675
Quote:
Originally Posted by moadif View Post
I have another question:

I noticed something today while sniffing packets and playing around, this is the packet for exchanging:
Code:
[S -> C][3080]
01                              
52 43 00 00
52 keeps changing depending on the character, so I think it's something like an ID which is assigned to the character on login (And it changes everytime).
Now my question is, is there a way to find the character name using that ID? Is there a packet I can send using that ID that could possibly return the character name?
Cheers.
Packet 0x3015 SingleSpawn

Code:
public static void SingleSpawn(byte[] data)
        {
            using (BinaryReader br = new BinaryReader(new MemoryStream(data)))
            {
                uint id = br.ReadUInt32();

                if ((id >= 1907 && id <= 1932) || (id >= 14875 && id <= 14900))
                {
                    ParsePlayer(data);
                }
                else if (Framework.Global.PK2Global.dicCharacterData.ContainsKey(id))
                {
                    if (Framework.Global.PK2Global.dicCharacterData[id].sr_name.Contains("MOB"))
                    {
                        ParseMonster(data);
                    }
                    else if (Framework.Global.PK2Global.dicCharacterData[id].sr_name.Contains("COS"))
                    {
                        ParseTransport(data);
                        OnLogMsg(
                            Framework.Global.PK2Global.dicCharacterData[id].sr_name);
                    }
                    else
                    {
                        Console.WriteLine("test");
                    }
                }
                else if (Framework.Global.PK2Global.dicItemData.ContainsKey(id))
                {
                    ParseItem(data);
                }
                else
                {
                    Console.WriteLine("test");
                }
            }
        }
Devsome is offline  
Thanks
1 User
Old 04/09/2015, 19:56   #10
 
elite*gold: 0
Join Date: Aug 2009
Posts: 152
Received Thanks: 11
I think it is party related packet and I think it contains Player Unique ID.
You will use it usually at Normal Chat or Spawns etc
tarek1500 is offline  
Old 04/09/2015, 21:25   #11
 
elite*gold: 0
Join Date: Jul 2012
Posts: 14
Received Thanks: 0
edit:nevermind
moadif is offline  
Reply


Similar Threads Similar Threads
Sending Packets
03/26/2019 - PW Hacks, Bots, Cheats, Exploits - 432 Replies
As per Smurfin's request: reposting of what I posted in the Prophet's bot thread. some example of functions you could use with sending packets (AutoIt code, see link below for C#): ;////Code for sending packets.
Sending Packets
11/29/2012 - AutoIt - 6 Replies
Hey, so I'm trying to send packets to a game called Pokemon World Online, I've been using WPE in order to sniff the packets, using WPE sending the packets its ridiculously easy so I've been trying to do the same with autoit script. After a lot of research I know that TCP function should do it but I've always failed to use the same socket as the same or even to listen to the right ports or something, I'm completely lost here. I know this can be done and I'm not asking for someone to...
Help sending packets
06/27/2012 - SRO Coding Corner - 2 Replies
well i knew that i need to put the packet in a byte array so i defined it BYTE pack = { 0x01, 0x00, 0x4F, 0x70, 0x20, 0x00, 0x04 }; and when i send it using the send through a socket like this
Question about sending packets with usigned variables
12/28/2010 - CO2 Programming - 6 Replies
Ok so I started making a proxy in java and Have got up to receiving the password seed. But I've run into a problem java doesn't have unsigned variables so I had to edit the auth cryption to use short values. I can get the password seed perfectly its just forwarding it to the client I'm not sure how to do because the socket doesn't send a short array. I try sending the origional byte array but got no response from the client. If anyone can give me some pointers on how to do this I would...
[Question]Sending packets
10/28/2010 - RF Online - 3 Replies
I'm working on a hack involving sending packets back to the server, but every time i try and set a packet back, it cuts me of. I get disconnected when I try to send a packet. Can someone enlighten me to why is this happening and how can I avoid it? Thanks. P.S. Don't go posting in my thread saying im a noob and shit. I ask cos I wanna learn. At least I do it on my own and not beg for hacks and cheats.



All times are GMT +1. The time now is 17:37.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.