Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Conquer Online 2 > CO2 Programming
You last visited: Today at 03:11

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

Advertisement



how to encrypt something i know how to decrypt

Discussion on how to encrypt something i know how to decrypt within the CO2 Programming forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Sep 2013
Posts: 18
Received Thanks: 18
how to encrypt something i know how to decrypt

at the interaction 1022 packet, magic subtype
here is how to decrypt

Code:
                            #region GetSkillID
                            SpellID = Convert.ToUInt16(((long)attack.ToArray()[24] & 0xFF) | (((long)attack.ToArray()[25] & 0xFF) << 8));
                            SpellID ^= (ushort)0x915d;
                            SpellID ^= (ushort)attacker.UID;
                            SpellID = (ushort)(SpellID << 0x3 | SpellID >> 0xd);
                            SpellID -= 0xeb42;
                            #endregion
                            #region GetCoords
                            X = (ushort)((attack.ToArray()[16] & 0xFF) | ((attack.ToArray()[17] & 0xFF) << 8));
                            X = (ushort)(X ^ (uint)(attacker.UID & 0xffff) ^ 0x2ed6);
                            X = (ushort)(((X << 1) | ((X & 0x8000) >> 15)) & 0xffff);
                            X = (ushort)((X | 0xffff0000) - 0xffff22ee);

                            Y = (ushort)((attack.ToArray()[18] & 0xFF) | ((attack.ToArray()[19] & 0xFF) << 8));
                            Y = (ushort)(Y ^ (uint)(attacker.UID & 0xffff) ^ 0xb99b);
                            Y = (ushort)(((Y << 5) | ((Y & 0xF800) >> 11)) & 0xffff);
                            Y = (ushort)((Y | 0xffff0000) - 0xffff8922);
                            #endregion
                            #region GetTarget
                            Target = ((uint)attack.ToArray()[12] & 0xFF) | (((uint)attack.ToArray()[13] & 0xFF) << 8) | (((uint)attack.ToArray()[14] & 0xFF) << 16) | (((uint)attack.ToArray()[15] & 0xFF) << 24);
                            Target = ((((Target & 0xffffe000) >> 13) | ((Target & 0x1fff) << 19)) ^ 0x5F2D2463 ^ attacker.UID) - 0x746F4AE6;
                            #endregion
so how to encrypt that in the first place ?
i would love a spoon feeding but i would really appreciate some mathematical references and tutorials
i picked the red pill too is offline  
Old 11/23/2013, 02:29   #2
 
{ Angelius }'s Avatar
 
elite*gold: 0
Join Date: Aug 2010
Posts: 992
Received Thanks: 1,110
It sounds like you are willing to learn and put some effort into it so my advice to you is to ignore ,u reply for now and wait for educational replies before you open the spoiler..

Spoon feeding 101.

{ Angelius } is offline  
Thanks
1 User
Old 11/23/2013, 03:03   #3
 
elite*gold: 0
Join Date: Sep 2013
Posts: 18
Received Thanks: 18
as much as i want to just use it to make the bot full functional ill respect your willing and wait for the next day, but im pretty sure not so much over here want to help out (specially when it comes to a bot related subject)
i picked the red pill too is offline  
Old 11/23/2013, 20:32   #4
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,380
You need to perform the same operations in reverse.

So lets say for example I know that I can 'decrypt' something through the following process

SkillID += 100;
SkillID /= ClientID;
SkillID ^= 12345;

We can reverse this and say the 'encryption' method would be

SkillID ^= 12345;
SkillID *= ClientID;
SkillID -= 100;


Note: The reverse of XOR is XOR, bit shifting left is replaced with bitshifting right, etc.

Might suggest doing some reading on the subject of boolean algebra so you understand what's going on in the background.

Boolean algebra - Wikipedia, the free encyclopedia
pro4never is offline  
Thanks
1 User
Old 11/24/2013, 03:46   #5
 
elite*gold: 0
Join Date: Sep 2013
Posts: 18
Received Thanks: 18
Quote:
Originally Posted by pro4never View Post
You need to perform the same operations in reverse.

So lets say for example I know that I can 'decrypt' something through the following process

SkillID += 100;
SkillID /= ClientID;
SkillID ^= 12345;

We can reverse this and say the 'encryption' method would be

SkillID ^= 12345;
SkillID *= ClientID;
SkillID -= 100;


Note: The reverse of XOR is XOR, bit shifting left is replaced with bitshifting right, etc.

Might suggest doing some reading on the subject of boolean algebra so you understand what's going on in the background.

Boolean algebra - Wikipedia, the free encyclopedia
thanks for the information, i was never aware i could use boolean algebra at this, but i would try to dig deeper at it, but still their is more operations that i duno how to reverse, that's why i need atleast a key to search for like boolean algebra
i picked the red pill too is offline  
Reply


Similar Threads Similar Threads
NOS Encrypt Decrypt
09/08/2011 - Nostale - 3 Replies
Hello all, excuse me but I don't speak german. I'd like to exchange knowledge about NOS with talented / experienced users. Just to say, I realized a program that: ) log decrypted nos net packets ) allow to send packets to client /server ) auto bruteforce packets key
C++ Text Decrypt Function + Programm Encrypt to Decrypt
07/09/2011 - WarRock Hacks, Bots, Cheats & Exploits - 19 Replies
http://desmond.imageshack.us/Himg233/scaled.php?se rver=233&filename=icevisionzxencrypttodec.png& amp;res=medium Download: uploaded.to - where your files have to be uploaded to Virustotal: VirusTotal - Free Online Virus, Malware and URL Scanner Function C++: char* encrypt(const char* plaintext) {
C++ RC5 Decrypt/Encrypt
02/10/2011 - CO2 Private Server - 2 Replies
Greetings guys, i was working on my own server and am coding it in c++, i heared i must decrypt the msg from the client so i can check if the user is exist or not (geting server name,account id and password) for patch 5290 or more so i was wondering if someone can help me and correct what am doing wrong here is my code hopefully someone can help me RC5.h #ifndef RC5_H #define RC5_H
Encrypt/Decrypt
09/01/2010 - EO PServer Hosting - 9 Replies
Who can tell me how can i decrypt a password mage by the register page?:D
encrypt/decrypt guide .INI
12/01/2007 - Archlord - 4 Replies
I put this little guide together to make it more understandable and easier to read, this is in regards to the other guys post (menasculio) who posted the source code/compiled Put that file in the INI folder of archlord. start>run>CMD type in CD C:\Program Files\Codemasters\Archlord\ini once you have done that you can rename the .exe you downloaded to a shorter name, i named mine DEC.



All times are GMT +1. The time now is 03:11.


Powered by vBulletin®
Copyright ©2000 - 2026, 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 ©2026 elitepvpers All Rights Reserved.