[Guide]Coding your own source

11/08/2011 08:38 -Sensei-#16
TheNewBoston Channel Rocks ,

Thank you.
11/08/2011 08:43 BaussHacker#17
Quote:
Originally Posted by -Sensei- View Post
TheNewBoston Channel Rocks ,

Thank you.
No problem, personally I don't like videos for learning programming, because you do not get all details etc. Also he's starting with forms, where I would recommend consoles, because it's easier to understand how a program is build that way.
11/09/2011 01:26 -Sensei-#18
Quote:
Originally Posted by BaussHacker View Post
No problem, personally I don't like videos for learning programming, because you do not get all details etc. Also he's starting with forms, where I would recommend consoles, because it's easier to understand how a program is build that way.
Yah your right but, i found out he also have guides for other programming language.
11/09/2011 05:23 -Shunsui-#19
BAST BAST BAST EVAR! but blz whare is tha staad and guild?
11/09/2011 07:27 BaussHacker#20
Quote:
Originally Posted by -Shunsui- View Post
BAST BAST BAST EVAR! but blz whare is tha staad and guild?
It's right behind the basket.
11/09/2011 13:14 miketheking#21
So far so good I feel a bit lost but I'm making progress gotta know how this encryption and decryption stuff works now
11/09/2011 14:38 BaussHacker#22
Quote:
Originally Posted by miketheking View Post
So far so good I feel a bit lost but I'm making progress gotta know how this encryption and decryption stuff works now
Basically you send the encrypt function in the send method to the client, after handling the packets.

The decryption is at the receive of a packet.

Take a look at other sources or the link to P4n's thread.
11/09/2011 15:45 miketheking#23
Quote:
Originally Posted by BaussHacker View Post
Basically you send the encrypt function in the send method to the client, after handling the packets.

The decryption is at the receive of a packet.

Take a look at other sources or the link to P4n's thread.
i know how everything works basically anyway ill check the thread for details tomorrow if i manage to finish my HW today

just to make sure that i understood
correct me if im wrong
the global socket wrapper is a wrapper to many socketclients that refer to a the client that some1 is running
the connection event is the 1 where all the authentication stuff is handled
like checking in and disconnection is where the client checks out

in the recieve event the packet which is defined as buffer in this socket system
this buffer should be encrypted then handled
using switch(whatever refers to packet id) if so arent i supposed to define a character in the socketclient after i code the character class

Edit:here is my what ive done till now

[Done] [Working]
SocketSystem [yes] [No idea]
PacketHandler [Base only] [yes(tested)]
PacketReader [yes] [yes]
PacketWriter [yes] [yes]
Enums [yes] [No idea if they r right]
Encryption/Decryption [yes] [yes but i dont know how to use it (when to use which encryption)]

i dunno whats the use of having the event on connection nothing on mind
i dont understand a thing about encryption and decryption i jus used p4n's system and im having troubles with it cos i dont understand a thing
12/13/2011 00:56 BaussHacker#24
Quote:
Originally Posted by miketheking View Post
i know how everything works basically anyway ill check the thread for details tomorrow if i manage to finish my HW today

just to make sure that i understood
correct me if im wrong
the global socket wrapper is a wrapper to many socketclients that refer to a the client that some1 is running
the connection event is the 1 where all the authentication stuff is handled
like checking in and disconnection is where the client checks out

in the recieve event the packet which is defined as buffer in this socket system
this buffer should be encrypted then handled
using switch(whatever refers to packet id) if so arent i supposed to define a character in the socketclient after i code the character class

Edit:here is my what ive done till now

[Done] [Working]
SocketSystem [yes] [No idea]
PacketHandler [Base only] [yes(tested)]
PacketReader [yes] [yes]
PacketWriter [yes] [yes]
Enums [yes] [No idea if they r right]
Encryption/Decryption [yes] [yes but i dont know how to use it (when to use which encryption)]

i dunno whats the use of having the event on connection nothing on mind
i dont understand a thing about encryption and decryption i jus used p4n's system and im having troubles with it cos i dont understand a thing
The event on connection is when a client makes a new connection to your server.
Before the server can receive data, then on the newer patches you have to send a unique seed.
Code:
    public class PasswordSeedPacket : ConquerPacket
    {
        public PasswordSeedPacket()
            : base(8, false)
        {
        }

        public ushort
            Param,
            Param2;
        public uint Seed;

        public static implicit operator byte[](PasswordSeedPacket packet)
        {
            packet.Write((ushort)packet.Param);
            packet.Write((ushort)packet.Param2);
            packet.Write(packet.Seed);

            return packet.ToArray();
        }
    }
Code:
        public static void Auth_Connection(SocketClient Client)
        {
            Client.AuthCrypt = new Security.AuthCryptography();
            Client.PasswordSeed = Core.Kernel.Rnd.Next(Core.Kernel.RndSeed);
            Packets.Structures.PasswordSeedPacket Packet = new Packets.Structures.PasswordSeedPacket();
            Packet.Param = 8;
            Packet.Param2 = 1059;
            Packet.Seed = (uint)Client.PasswordSeed;
            Client.Send(Packet);
        }
Note: From my old source.

There is different cryptographers in the Conquer source. One for password, where you either decrypt or do nothing, depending on if your passwords are encrypted or not in the database. That's the rc5 encryption or whatever, if I'm not mistaken. Then for packets you decrypt them using Blowfish (cast on newer) when you RECEIVE and when you SEND you encrypt the packets. Encryption are simply used to protect data from being read other than the client and the server, however in this case it's not really for security reasons, because the cryptography is public and it was only security from TQ's side, but I don't want to go in details with custom encryptions. Hope you get it tho. There is also a few other encryptions and so, but meh you should get it now ^^
12/13/2011 01:51 andrewxxx#25
already did +k and feels like i want to thank u once more :D