need help with login packet

06/19/2012 22:32 pippop#31
Quote:
Originally Posted by kebab90 View Post
this ho the login packet looks like:003815420000 +(userid in hex)+ 00000020+(sessionid in hex)+0006+(clientversion in hex)++(server id in hex)
for me don't work... maybe i'm stupid...:confused:
server id is like int1 or es4?? is coded in 4 hex character?
this part 003815420000 what means??
i send this packet in this way:
Code:
str = "003815420000" +userid_hex+ "00000020"+sessionid_hex+"0006"+clientversion_hex+server_id_hex;
socket.Send(packet, str.Length, SocketFlags.None);
Help!!
06/19/2012 22:33 MiszczuOfWorld#32
In login packet is not server id.
06/19/2012 23:04 kebab90#33
Quote:
Originally Posted by pippop View Post
for me don't work... maybe i'm stupid...:confused:
server id is like int1 or es4?? is coded in 4 hex character?
this part 003815420000 what means??
i send this packet in this way:
Code:
str = "003815420000" +userid_hex+ "00000020"+sessionid_hex+"0006"+clientversion_hex+server_id_hex;
socket.Send(packet, str.Length, SocketFlags.None);
Help!!
ok first is u need to convert userid dec to hex
sessionid as string to hex
clientversion as string to hex
server id as dec to hex
and server id is what u can find in fist page in source code like us1 is 47
looks like this in source code of [Only registered and activated users can see links. Click Here To Register...]
<option value="254">Germany 3</option>
06/19/2012 23:06 MiszczuOfWorld#34
Quote:
Originally Posted by kebab90 View Post
ok first is u need to convert userid dec to hex
sessionid as string to hex
clientversion as string to hex
server id as dec to hex
and server id is what u can find in fist page in source code like us1 is 47
looks like this in source code of [Only registered and activated users can see links. Click Here To Register...]
<option value="254">Germany 3</option>
You are idiot.

str = "003815420000" +userid_hex+ "00000020"+sessionid_hex+"0006"+clientversion_hex+ server_id_hex;
socket.Send(packet, str.Length, SocketFlags.None);
You are initializing variable str, but don't send it.
06/19/2012 23:11 Sήøwy#35
MiszczuOfWorld if u are so smart make the code and help some.. dont make stupid spam!
06/19/2012 23:12 kebab90#36
Quote:
Originally Posted by MiszczuOfWorld View Post
You are idiot.

str = "003815420000" +userid_hex+ "00000020"+sessionid_hex+"0006"+clientversion_hex+ server_id_hex;
socket.Send(packet, str.Length, SocketFlags.None);
You are initializing variable str, but don't send it.
why im idiot i do not initializ variable :D
06/19/2012 23:22 MiszczuOfWorld#37
Quote:
Originally Posted by kebab90 View Post
why im idiot i do not initializ variable :D
Because in login packet never was, and never will be server id.

You need to connect to ip of current map of ship. Then send packet with UID, SID, CV.

@asd26
I'm not doing code for someone else.
06/19/2012 23:24 pippop#38
Quote:
Originally Posted by MiszczuOfWorld View Post
You are idiot.

str = "003815420000" +userid_hex+ "00000020"+sessionid_hex+"0006"+clientversion_hex+ server_id_hex;
socket.Send(packet, str.Length, SocketFlags.None);
You are initializing variable str, but don't send it.
the real code is this below... copy & paste error :facepalm:

str = "003815420000" +userid_hex+ "00000020"+sessionid_hex+"0006"+clientversion_hex+ server_id_hex;
Byte[] packet = Encoding.UTF8.GetBytes(str);
s.Send(packet, str.Length, SocketFlags.None);
06/19/2012 23:27 MiszczuOfWorld#39
Quote:
Originally Posted by pippop View Post
the real code is this below... copy & paste error :facepalm:

str = "003815420000" +userid_hex+ "00000020"+sessionid_hex+"0006"+clientversion_hex+ server_id_hex;
Byte[] packet = Encoding.UTF8.GetBytes(str);
s.Send(packet, str.Length, SocketFlags.None);
Still bad format.
06/19/2012 23:42 pippop#40
Quote:
Originally Posted by MiszczuOfWorld View Post
Still bad format.
this not help me...
06/19/2012 23:48 kebab90#41
Quote:
Originally Posted by MiszczuOfWorld View Post
Still bad format.
u are idiot couse i have working tool woth this code so i if u dont trust in me use wireshark and try it
06/20/2012 00:35 pippop#42
Code:
string userid_hex_form = "0553D68C";
string DOClientVersion = "05352e31322e31";
string SessionID_hex = ConvertToHex("c169aac591cac76378b5a61c90ccdfde");
string server_hex = "00353732";
string conn_str = "003815420000" + userid_hex_form + "00000020" + SessionID_hex + "0006" + DOClientVersion + server_hex;
SendPacket(hSocket, conn_str);
i'm quite sure that the error is around here... Suggestion?
06/20/2012 04:03 kebab90#43
Quote:
Originally Posted by pippop View Post
Code:
string userid_hex_form = "0553D68C";
string DOClientVersion = "05352e31322e31";
string SessionID_hex = ConvertToHex("c169aac591cac76378b5a61c90ccdfde");
string server_hex = "00353732";
string conn_str = "003815420000" + userid_hex_form + "00000020" + SessionID_hex + "0006" + DOClientVersion + server_hex;
SendPacket(hSocket, conn_str);
i'm quite sure that the error is around here... Suggestion?
server hex is bad convert it like this is server 669(hu1) in hex is 29d
06/20/2012 10:21 pippop#44
Quote:
Originally Posted by kebab90 View Post
server hex is bad convert it like this is server 669(hu1) in hex is 29d
Code:
string userid_hex_form = "0553D68C";
string DOClientVersion = "05352e31322e31";
string SessionID_hex = ConvertToHex("c169aac591cac76378b5a61c90ccdfde");
string server_hex = "0000029d";
string conn_str = "003815420000" + userid_hex_form + "00000020" + SessionID_hex + "0006" + DOClientVersion + server_hex;
SendPacket(hSocket, conn_str);
you confirm that what i wrote above is right?

the port is 8080? Something wrong here?
Code:
hSocket = new Socket(AddressFamily.InterNetwork,SocketType.Stream,ProtocolType.Tcp);
hSocket.Connect(Current_IP,default_port);
thank you!!:handsdown:
06/20/2012 13:57 MiszczuOfWorld#45
Quote:
Originally Posted by kebab90 View Post
u are idiot couse i have working tool woth this code so i if u dont trust in me use wireshark and try it
Yes, yes, but I have magic ponny.
@up
give us your current map, and Current_IP