Junior Spellweaver
- Joined
- Oct 20, 2013
- Messages
- 193
- Reaction score
- 56
I'm trying to build a S.U.N (Soul of the Ultimate Nation) Online server, but I'm running into an issue with packet sniffing or figuring out how to tell how the client is requesting information from the server. I'm currently working in Java, I have the server socket setup, and the client is connecting. I'm at the stage of the development where I need to handle packet request and do packet sending to the client to make a server.
What can you recommend to me? Should I build my own packet sniffer? Should I use a third party program? If I use a third party program, what should I look for while using the program? If I build my own, what kind of tips can you give me?
I am still learning and have never done anything in packeting or networking like this before. I have tried Wireshark (mostly read pcap files) and RawCap (to do loopback on 127.0.0.1 for Windows OS). For now, I'm looking up more information about the output that Wireshark gives and how to make my own packet sniffer in Java.
Just to clarify I found some code on an older S.U.N server source code and this is what is list:
enum eCL_AUTH
{
// CL_AUTH_S2C_READY = 0,
CL_AUTH_C2S_ASK_VERIFY = 1,
CL_AUTH_S2C_ANS_VERIFY = 2,
CL_AUTH_C2S_ASK_AUTH = 3,
//CL_AUTH_S2S_ASK_AUTH = 4,
//CL_AUTH_S2S_ANS_AUTH = 5,
CL_AUTH_S2C_ANS_AUTH = 6,
CL_AUTH_C2S_ASK_SVRLIST = 7,
//CL_AUTH_S2S_ASK_SVRLIST = 8,
//CL_AUTH_S2S_ANS_SVRLIST = 9,
CL_AUTH_S2C_ANS_SVRLIST = 10,
CL_AUTH_C2S_ASK_SVRSELECT = 11,
//CL_AUTH_S2S_ASK_SVRSELECT = 12,
//CL_AUTH_S2S_ANS_SVRSELECT = 13,
CL_AUTH_S2C_ANS_SVRSELECT = 14,
CL_AUTH_S2C_SERVER_NAME_LIST = 29,
I'm trying to figure out how they came up with these numbers. Did they use a packet sniffer to find those numbers or did they create them and manipulate the client to use those accordingly? Thank you!
What can you recommend to me? Should I build my own packet sniffer? Should I use a third party program? If I use a third party program, what should I look for while using the program? If I build my own, what kind of tips can you give me?
I am still learning and have never done anything in packeting or networking like this before. I have tried Wireshark (mostly read pcap files) and RawCap (to do loopback on 127.0.0.1 for Windows OS). For now, I'm looking up more information about the output that Wireshark gives and how to make my own packet sniffer in Java.
Just to clarify I found some code on an older S.U.N server source code and this is what is list:
enum eCL_AUTH
{
// CL_AUTH_S2C_READY = 0,
CL_AUTH_C2S_ASK_VERIFY = 1,
CL_AUTH_S2C_ANS_VERIFY = 2,
CL_AUTH_C2S_ASK_AUTH = 3,
//CL_AUTH_S2S_ASK_AUTH = 4,
//CL_AUTH_S2S_ANS_AUTH = 5,
CL_AUTH_S2C_ANS_AUTH = 6,
CL_AUTH_C2S_ASK_SVRLIST = 7,
//CL_AUTH_S2S_ASK_SVRLIST = 8,
//CL_AUTH_S2S_ANS_SVRLIST = 9,
CL_AUTH_S2C_ANS_SVRLIST = 10,
CL_AUTH_C2S_ASK_SVRSELECT = 11,
//CL_AUTH_S2S_ASK_SVRSELECT = 12,
//CL_AUTH_S2S_ANS_SVRSELECT = 13,
CL_AUTH_S2C_ANS_SVRSELECT = 14,
CL_AUTH_S2C_SERVER_NAME_LIST = 29,
I'm trying to figure out how they came up with these numbers. Did they use a packet sniffer to find those numbers or did they create them and manipulate the client to use those accordingly? Thank you!
Last edited: