C# Pro's

04/13/2012 23:50 TheOwnerxX.:#1
Hi There,
I've got a question...
Can somebody tell me, for what this "packet.AddBlock(12345678);" is?
Which code I have to enter there?
Thanks.
Code:
        public void Send_Login(Socket cSocket)
        {
            try
            {
                //23601323 4352 4275522426 0 username password nickname 1 22 
                // 4199457 4352 3784474185 0 username password  nickname 1 22 
                // 123856874 4352 12345678 0 '.$this->username.' '.$this->password.' '.$this->nickname.' 1 40
                Encrypt packet = new Encrypt();
                packet.newPacket(4352);
                packet.AddBlock(12345678);//For what is this?
                packet.AddBlock(0);
                packet.AddBlock(username);
                packet.AddBlock(password);
                packet.AddBlock(nickname);
                packet.AddBlock(1);
                packet.AddBlock(22);
                byte[] fpacket = packet.getPacket();
                cSocket.Send(fpacket);
                Console.WriteLine(nickname + "\t:\tLoginPacket sent.");
            }
            catch
            {
            }
        }
04/14/2012 00:24 MadnessFreak#2
Random Number (1111111111 to 9999999999).
04/14/2012 00:26 TheOwnerxX.:#3
Quote:
Originally Posted by Horiiizon View Post
Random Number (1111111111 to 9999999999).
Hay, can you just come tv I wanna ask u something..
04/14/2012 00:48 MadnessFreak#4
Sorry, I can't. I'm not at home. But if you have some special questions write me an private message. And by the way you don't need the nickname for logging in at the log-in server.
04/14/2012 00:55 TheOwnerxX.:#5
Quote:
Originally Posted by Horiiizon View Post
Sorry, I can't. I'm not at home. But if you have some special questions write me an private message. And by the way you don't need the nickname for logging in at the log-in server.
Thanks.
I've sent you a message
04/14/2012 11:34 xRoute66x#6
Quote:
public void Send_Login(Socket cSocket)
{
try
{
//23601323 4352 4275522426 0 username password nickname 1 22
// 4199457 4352 3784474185 0 username password nickname 1 22
// 123856874 4352 12345678 0 '.$this->username.' '.$this->password.' '.$this->nickname.' 1 40
Encrypt packet = new Encrypt();
packet.newPacket(4352);
packet.AddBlock(12345678);//For what is this?
packet.AddBlock(0);
packet.AddBlock(username);
packet.AddBlock(password);
packet.AddBlock(nickname);
packet.AddBlock(1);
packet.AddBlock(22);
byte[] fpacket = packet.getPacket();
cSocket.Send(fpacket);
Console.WriteLine(nickname + "\t:\tLoginPacket sent.");
}
catch
{
}
}
Ich bin zwar kein C# Genie, aber ist das nicht ein KeyLogger? :/
04/14/2012 11:38 Phantom.#7
Quote:
Originally Posted by xroute66x™ :) View Post
Ich bin zwar kein C# Genie, aber ist das nicht ein KeyLogger? :/
Omg xD
Das ist LoginPacket sender für einen P-Server von WarRock denke ich mal
04/14/2012 13:51 xRoute66x#8
Quote:
Omg xD
Das ist LoginPacket sender für einen P-Server von WarRock denke ich mal
Aso, ja kann sein xD
04/14/2012 15:49 TheOwnerxX.:#9
Sind die packets, die du an den Login Server schickst.
04/14/2012 17:11 MadnessFreak#10
Quote:
Originally Posted by TradEmArk™˟ View Post
Omg xD
Das ist LoginPacket sender für einen P-Server von WarRock denke ich mal
Das ist nicht für einen Privat Server, da das ein Packet ist, was der Client an den Server sendet. Dabei werden Username, Passwort und optional auch Nickname bzw. E-Mail übermittelt.