Register for your free account! | Forgot your password?

You last visited: Today at 20:11

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

 

packet decryption?

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Apr 2006
Posts: 2,524
Received Thanks: 74
packet decryption?

soo, ich wuerde gerne bissl mit den wow-packets rumspielen.
allerdings hab ich keine ahnung, wie ich die decrypten soll. weiss da wer was?
Ping



4C1D^ is offline  
Old   #2
 
elite*gold: 0
Join Date: Feb 2006
Posts: 537
Received Thanks: 27
K.a. obs noch akutell ist aber:

Packet decryption:
Code:
BYTE *DecryptPacket(BYTE *Packet, DWORD len) {
   BYTE KeyIndex, curKey, lastByte;
   DWORD i;

   KeyIndex = *(CryptInfo + 0x115);

   lastByte = 0;

   for(i = 0; i < len; i++) {      //return the key to the initial state
     KeyIndex--;
       if(KeyIndex == 0xFF)         //-1, bytes are unsigned
        KeyIndex = 39;
   }

   for(i = 0; i < len; i++) {
  curKey   = *(*(BYTE **)(CryptInfo + 0x11C) + KeyIndex);
  tmp = *(Packet + i);
  *(Packet + i) = (*(Packet + i ) - lastByte)) ^ curKey;
  lastByte = tmp;
   }

   return Packet;
}
Crypt Info
Code:
typedef struct WoWKeyIndex {
   BYTE Index;
   BYTE LastByte;
   BYTE CryptLen;     
} WoWKeyIndex;

typedef struct WoWCryptInfo {
   BYTE IsCrypted;               
   WoWKeyIndex SendKey;
   WoWKeyIndex RecvKey;
   BYTE KeyLen;
   char *Key;
} WoWCryptInfo;

typedef struct WoWClientOP {
   WORD Size;
   DWORD Code;
   BYTE Data[MAX_PACKET_LEN];
} WoWClientOP;

typedef struct WoWServerOP {
   WORD Size;
   WORD Code;
   BYTE Data[MAX_PACKET_LEN];
} WoWServerOP;
Ansonsten kannst du dich mit WoW Emulatoren befassen.
Quote:
Originally Posted by AlexM
And yes, you can "sniff" the encryption in the packets. That's basically how emulated servers are able to encrypt/decrypt packets. Someone went through with a disassembler and/or debugger, figured out the encryption in ASM, and finally converted it to C/C++/etc.


Hydrox is offline  
Thanks
1 User
Reply



« Previous Thread | Next Thread »

Similar Threads
Packet Decryption
I need help with understanding packet decryption. can anyone point me to a right tutorial? maybe tuts for reverse engineering? or tutorials for...
3 Replies - General Coding
Packet Decryption help
Hi! I'm working on a little prog. that decrypts the L2 packages. The decryption algorithm is (I think) good, because the first packet seems to...
4 Replies - Lineage 2
CO Packet decryption.
Hi, i recently made a Java proxy, I'm wondering if anyone would like to share with me the CO packet encryption/decryption packet structure. I...
11 Replies - CO2 Programming
t4c packet decryption
Hey I was wondering if anyone could help me with packet decrypting of a game. Its called The 4th Coming. its a 2d game, and speed hacks work on it,...
0 Replies - General Coding



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


Powered by vBulletin®
Copyright ©2000 - 2016, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

Support | Contact Us | FAQ | Advertising | Privacy Policy
Copyright ©2016 elitepvpers All Rights Reserved.