Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Nostale
You last visited: Today at 05:11

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Something wrong in the public cryptography class

Discussion on Something wrong in the public cryptography class within the Nostale forum part of the MMORPGs category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Oct 2018
Posts: 257
Received Thanks: 207
Something wrong in the public cryptography class

Hello,

I am trying to make a simple bot that doesn't allow a lot of things to do. I am using C++ with Qt and the Cryless cryptography.
I have absolutly no knowledges in cryptography, and those lines doesn't seem to be written for understanding.
The problem is that everytime we send a packet, the first packet word is something like a "packet number" being increased by 1 every sent. As an example :
Code:
65533 say hello
65534 say how are you
65535 say it is nice now
65536 say but now it crashes because we exceeded 65535.
I tried to found a variable which has his max value to 65535, but there is not.
Maybe it comes from :
Code:
if(current_byte != 0x00)
				{
					if(i % 2 == 0)
					{
						output.push_back(current_byte << 4); // <-
					} else 
					{
						output.back() |= current_byte; 
					}
				}
?
65535 is still a 4 bits value meanwhile 65536 isn't. I tried everything I could, didn't succeed, maybe you got the solution ? (Or another C++ cryptography ?)

+ If someone is able to explain me how this class works, it would be really appreciated (courses or books could also works). Maybe I could understand where does those hexadecimals values come from...

Thank you in advance

Edit : how do you do to colorize the code area ?

Edit2 : just realised I wrote **** here : "65535 is still a 4 bits value meanwhile 65536 isn't. I tried everything I could, didn't succeed, maybe you got the solution ? (Or another C++ cryptography ?)"
I meant that 65535 is the 0xFFFF value, and 65536 is 0x10000 value.
Apourtartt is offline  
Old 01/24/2019, 22:56   #2
 
WalrossGreat's Avatar
 
elite*gold: 0
Join Date: Mar 2015
Posts: 871
Received Thanks: 1,229
When the packet ID reaches 0xFFFF real client resets it back to 0
WalrossGreat is offline  
Thanks
3 Users
Old 01/24/2019, 23:04   #3

 
Blowa's Avatar
 
elite*gold: 48
Join Date: Jan 2010
Posts: 648
Received Thanks: 1,789


It was also written here
Blowa is offline  
Old 01/24/2019, 23:36   #4
 
elite*gold: 0
Join Date: Oct 2018
Posts: 257
Received Thanks: 207
Trying, brb.

Ok that works pretty well, thank you !
Apourtartt is offline  
Reply


Similar Threads Similar Threads
[Release] The New Cryptography [Cast-128/Cast-5]
08/10/2011 - CO2 PServer Guides & Releases - 53 Replies
That's right... I decided to because everyone who shouldn't have it has already figured it out... and it's starting to spread quickly. There really isn't any reason to keep it secret anymore. Noobs that get hold of it can't code the patch anyways. Open where your Blowfish is... You'll see the "BF_set_key" and "BF_cfb64_encrypt" voids. Replace those with "CAST_set_key" and "CAST_cfb64_encrypt". The new key for it is "BC234xs45nme7HU9". Done.
[Release]5017 Password Cryptography
06/22/2011 - CO2 PServer Guides & Releases - 10 Replies
-5017+ Will work with Lower Versions but not all Will work with Higher versions but not all Create a new .cs file if you wish and paste this class:
Password Cryptography
03/03/2011 - CO2 Private Server - 13 Replies
#Problem solved Thank You everybody, I Appreciate this.
Client Server Cryptography?
07/14/2009 - Archlord - 7 Replies
i was wondering, the communication between alefcient and the game server is encrypted, and alefclient binary seems to use Cryptography API (CNG) with most of its functions like: BCryptCloseAlgorithmProvider BCryptCreateHash BCryptDecrypt BCryptDeriveKey BCryptDestroyHash BCryptDestroyKey BCryptDestroySecret BCryptDuplicateHash



All times are GMT +1. The time now is 05:14.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.