seeing as I said a random int seed that would mean the value of it should be an int.
Simply generate a random number and write it to the password seed and send to the client. Client should now respond with the auth request packet which you will need to then read the relevant sections, setup your password encryption using the seed you sent in the first packet and the username you read from the auth request packet and run it through password decryption to get the users password. You can then continue with login procedure like normal (IE: Confirm all information from the client and then send the corresponding auth response packet and continue to game server)
seeing as I said a random int seed that would mean the value of it should be an int.
Simply generate a random number and write it to the password seed and send to the client. Client should now respond with the auth request packet which you will need to then read the relevant sections, setup your password encryption using the seed you sent in the first packet and the username you read from the auth request packet and run it through password decryption to get the users password. You can then continue with login procedure like normal (IE: Confirm all information from the client and then send the corresponding auth response packet and continue to game server)
does it matter if the rand was like (22222222) or (11111111) etc?
the randseed for make 8 random numbers like =78549621 and its working becuase the client sending back some encrypted letters and at the end the same number i sent to it , when i receved it i tried to decrypt it but it didnt work , i used (Hybridz & Nullable) codes but it didnt work , i know it's sounds mean because I keep asking and it's look like am an stupid but as u know Guys always the 1st time is hardest one lol, so please dont get upset becuase am asking etc , thank u all
Before you continue, you need to manage your sockets properly. Having a single "recv" pull data will cause you a lot of problems later on that you will be unable to identify. What if that single recv returns no data read? Are they blocking sockets? Could I fake being a client to lock your server up indefinitely? What if recv doesn't read the entire packet at once?
Before you continue, you need to manage your sockets properly. Having a single "recv" pull data will cause you a lot of problems later on that you will be unable to identify. What if that single recv returns no data read? Are they blocking sockets? Could I fake being a client to lock your server up indefinitely? What if recv doesn't read the entire packet at once?
yeah yeah , i will do that but once i find the right codes which will allow me to decrypt/encrypt what am geting from the client once i get the (servername,accid,password) i will make a new prog with a manged socket i saw ur source yeah , but it's only i cant decrypt the pass,accid and server name!
yeah yeah , i will do that but once i find the right codes which will allow me to decrypt/encrypt what am geting from the client once i get the (servername,accid,password) i will make a new prog with a manged socket i saw ur source yeah , but it's only i cant decrypt the pass,accid and server name!
The seed is for the password encryption (RC5). If you can't decrypt the first packet sent by the client, you need to check the auth crypto...
You can't use "any" random numbers. You must use 16 random numbers produced by calling the rand() method. (Which are int16s, but you only need the least sig byte). You must first call srand(packet->Seed)
This works because rand() and srand() are not really random (In Microsoft's implementation). They produce a fixed sequence of integers if seeded by the same number, because it's implementation looks like this.
Code:
int _seed;
int srand(int seed) {
_seed = seed;
}
short rand() {
_seed *= 0x343fd;
_seed += 0x269ec3;
return (short)((_seed >> 0x10) & 0x7fff);
}
You can't use "any" random numbers. You must use 16 random numbers produced by calling the rand() method. (Which are int16s, but you only need the least sig byte). You must first call srand(packet->Seed)
This works because rand() and srand() are not really random (In Microsoft's implementation). They produce a fixed sequence of integers if seeded by the same number, because it's implementation looks like this.
Code:
int _seed;
int srand(int seed) {
_seed = seed;
}
short rand() {
_seed *= 0x343fd;
_seed += 0x269ec3;
return (short)((_seed >> 0x10) & 0x7fff);
}
Quote:
Originally Posted by Basser
Good luck programming a function that returns a random number.
Farmerama seed bot 03/06/2012 - Browsergames - 14 Replies anyone know that game ? farmerama.com its cool game but I need some help ... where I can get seed bot :P ? help me
Seed's ID's 11/12/2011 - Lineage 2 - 1 Replies Mans need a Seed's ID for Manor System
Regards
Ty :bandit: :bandit: :bandit: :bandit: :bandit: :bandit:
Seed on mobs 10/05/2009 - Lineage 2 - 10 Replies I`m using ig walker 2.05 Basic->combact heal->I did activate the Auto Use Seed but i dont`t use them, lf help.
SEED 01/26/2006 - General Gaming Discussion - 1 Replies Von Dänen entwickeltes MMORPG in Cellshading Style (XVIII oder so...oder wie Xmen Legends 2)
http://www.seedthegame.com/news.php