Register for your free account! | Forgot your password?

You last visited: Today at 09:45

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

 

Packet Decryption

Closed Thread
 
Old   #1
 
elite*gold: 209
The Black Market: 135/1/0
Join Date: Jul 2003
Posts: 16,603
Received Thanks: 17,591
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; 
}
The cryptinfo (cp-p )

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;
well you might want to check if the packet is encrypted or not otherwise it will crash when you recieve a undecrypted packet

p.s.: Maybe someone could update the current US offsets and release it because i only have the EU version + offsets ;P



Lowfyr is offline  
Old   #2
 
elite*gold: 209
The Black Market: 135/1/0
Join Date: Jul 2003
Posts: 16,603
Received Thanks: 17,591
nach absprache mit nem anderen admin wird das hier nu released - ist allerdings nur ein teil vom ganzen (leecher können damit wenig anfangen)

weitere infos kommen eventuell später


Lowfyr is offline  
Old   #3
 
elite*gold: 0
Join Date: Jan 2008
Posts: 2
Received Thanks: 0
Could anyone post a pseudo code here so us that can't understand C++ would be able to understand how this algorithm works? I am very interested in different encryption algorithms for my school projet. Thank you in advance! =)
KeroChan is offline  
Old   #4
 
elite*gold: 80
Join Date: May 2006
Posts: 2,781
Received Thanks: 772
03-07-2005, 11:20

=/


Kinu is offline  
Old   #5
 
elite*gold: 0
Join Date: Jul 2005
Posts: 302
Received Thanks: 4
was könnte uns das bringen oder welchen nutzen könnten wir daraus ziehen ? verste ich leider nich ganz thanks
nasty2116 is offline  
Old   #6
 
elite*gold: 2
Join Date: May 2007
Posts: 3,628
Received Thanks: 427
Ist das nu alt oder neu?
Und wieso ist es ganz oben ich raffs ned -.-
Aeh' is offline  
Old   #7
 
elite*gold: 0
Join Date: Mar 2005
Posts: 367
Received Thanks: 3
ka, weil irgendwelche leute meinen das man zu 2 jahre alten sachen noch was sagen muss ^^
wutzebaer is offline  
Old   #8
 
elite*gold: 80
Join Date: May 2006
Posts: 2,781
Received Thanks: 772
Quote:
Originally Posted by NatuRe. View Post
Ist das nu alt oder neu?
Und wieso ist es ganz oben ich raffs ned -.-
kannsu lesen?

03-07-2005 11:20

Kinu is offline  
Old   #9
 
elite*gold: 0
Join Date: Jul 2006
Posts: 673
Received Thanks: 32
dum di dum dum
Sourcesys is offline  
Old   #10
 
elite*gold: 0
Join Date: Jan 2008
Posts: 2
Received Thanks: 0
Does it matter if it's old? Has Blizz changed the encryption to something else? If so has the new encryption been discovered already? Just wanting to know how it works/worked =P


KeroChan is offline  
Closed Thread



« 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 09:45.


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

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