Register for your free account! | Forgot your password?

You last visited: Today at 17:22

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

Advertisement



Full Attack Decode

Discussion on Full Attack Decode within the CO2 Programming forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Aug 2014
Posts: 22
Received Thanks: 6
Full Attack Decode

Hello,
That's Full Attack Decode
PHP Code:
public class AttackDecode
    
{
        public static 
void PacketArray(byte[] Packet)
        {
            
ushort Length BitConverter.ToUInt16(Packet0);
            
ushort Type BitConverter.ToUInt16(Packet2);
            
int Time1 BitConverter.ToInt32(Packet4);
            
int Time2 BitConverter.ToInt32(Packet8);
            
ushort SpellID BitConverter.ToUInt16(Packet28);
            
ushort ResponeDamage BitConverter.ToUInt16(Packet30);
            
uint Attacker BitConverter.ToUInt32(Packet12);
            
uint Attacked BitConverter.ToUInt32(Packet16);
            
ushort X BitConverter.ToUInt16(Packet20);
            
ushort Y BitConverter.ToUInt16(Packet22);
            
ushort AttackType BitConverter.ToUInt16(Packet24);            
            
//X,Y Decryption
            
= (ushort)(Attacker 0xB99B);
            
= (ushort)(RotateLeftushort(Y5) + 0x76DE);
            
= (ushort)(Attacker 0x2ED6);
            
= (ushort)(RotateLeftushort(X1) - 0x22EE);
            
//SpellID
            
SpellID = (ushort)(Attacker 0x915D);
            
SpellID = (ushort)(RotateLeftushort(SpellID3) + 0x14BE);
            
//TargetUID
            
Attacked = (RotateRightuint(Attacked13) ^ 0x5F2D2463 Attacker) - 0x746F4AE6;
            
//ResponeDamage
            
if ((int)SpellID >= 1000
      
&& ((int)SpellID <= 1002 || SpellID == 1030 || SpellID == 1125 || SpellID == 1150 || SpellID == 1160 || SpellID == 1165))
                
ResponeDamage ^= (ushort)0x6279u;
           
ResponeDamage  = (ResponeDamage 0x3721) - (ushort)((Time2 0xFF) << 8);

        }
        public static 
uint RotateLeftuint(this uint valueint count)
        {
            return (
value << count) | (value >> (32 count));
        }

        public static 
uint RotateRightuint(this uint valueint count)
        {
            return (
value >> count) | (value << (32 count));
        }
        public static 
ushort RotateLeftushort(this ushort valueshort count)
        {
            return (
ushort)(((value << count) | (value >> (16 count))) & 0xFFFF);
        }

        public static 
ushort RotateRightushort(this ushort valueshort count)
        {
            return (
ushort)(((value >> count) | (value << (16 count))) & 0xFFFF);
        }
    } 
im dont test it yet thanks .
AhmedZero is offline  
Thanks
1 User
Old 01/21/2015, 14:07   #2
 
elite*gold: 0
Join Date: Jul 2014
Posts: 402
Received Thanks: 540
This has been public knowledge for like 5 years, maybe more, I believe ...
Best Coder 2014 is offline  
Old 01/21/2015, 14:14   #3
 
elite*gold: 0
Join Date: Aug 2014
Posts: 22
Received Thanks: 6
the decrypt of Response Damage not available in old Attack Decode.
AhmedZero is offline  
Old 01/21/2015, 14:17   #4
 
elite*gold: 0
Join Date: Apr 2014
Posts: 245
Received Thanks: 273
Well his other thread MsgTick (1012) had me going '10 years ago..' so now it's only 5 years ago. Progress sir, progress.
Thorev is offline  
Old 01/21/2015, 14:20   #5
 
elite*gold: 0
Join Date: Aug 2014
Posts: 22
Received Thanks: 6
Give me old thread of Packet MSGTick 1012 have the same encryption system.
AhmedZero is offline  
Old 01/21/2015, 14:28   #6
 
elite*gold: 0
Join Date: Apr 2014
Posts: 245
Received Thanks: 273
Pretty sure there is no old thread since nobody felt it was necessary to post it LOL
Thorev is offline  
Old 01/21/2015, 14:36   #7
 
elite*gold: 0
Join Date: Aug 2014
Posts: 22
Received Thanks: 6
i know it's lol but i post it if anyone need it and when i search information about that packet, i found that information.
the packet it's not too bad.
Quote:
Originally Posted by CptSky View Post
The MsgTick (1012) packet is used by TQ to disconnect people with bad connection. It is probably the best solution to ping the client.
i release that thread for learning i get Decode by using Debugger.
and i want know if the Code is work or not?
AhmedZero is offline  
Old 01/21/2015, 18:42   #8
 
elite*gold: 0
Join Date: Apr 2014
Posts: 245
Received Thanks: 273
The people who know enough, know the stuff that you post.
The people who don't know anything aren't going to bother reading or trying to understand what code you posted. Those are the people that go; 'plssss i ned source downlaod link ok ty bb'.

That pretty much sums up this community.
Thorev is offline  
Thanks
3 Users
Old 01/21/2015, 20:53   #9
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,380
Yahhh... just re-stating.

This is in every public source and has been for YEARS. If anyone had any need to understand how to process interaction packets, the most logical first step would to be see how other sources do it.

Boom, 100+ examples of it already written in every style you could hope to see.


Redux for example which is years old and even when I wrote that... I just copied the code out of a source that was old even at that time.
Code:
        private static void EncodeMagicAttack(InteractPacket* packet)
        {
            if (packet->isEncoded)
                return;
            packet->isEncoded = true;
            packet->MagicType = (ushort)(Common.ExchangeShortBits(packet->MagicType - (uint)0x14be, 3) ^ packet->UID ^ 0x915d);
            packet->Target = Common.ExchangeLongBits(((packet->Target - 0x8b90b51a) ^ packet->UID ^ 0x5f2d2463), 32 - 13);
            packet->X = (ushort)(Common.ExchangeShortBits(packet->X - (uint)0xdd12, 1) ^ packet->UID ^ 0x2ed6);
            packet->Y = (ushort)(Common.ExchangeShortBits((packet->Y - (uint)0x76de), 5) ^ packet->UID ^ 0xb99b);
            packet->MagicLevel = (ushort)((packet->MagicLevel + 0x100 * (packet->Timestamp % 0x100)) ^ 0x3721);
        }

        private static void DecodeMagicAttack(InteractPacket* packet)
        {
            if (packet->isDecoded)
                return;
            packet->isDecoded = true;
            packet->MagicType = (ushort)(0xFFFF & (Common.ExchangeShortBits((packet->MagicType ^ packet->UID ^ 0x915d), 16 - 3) + 0x14be));
            packet->MagicLevel = (ushort)(((byte)packet->MagicLevel) ^ 0x21);
            packet->Target = (Common.ExchangeLongBits(packet->Target, 13) ^ packet->UID ^ 0x5f2d2463) + 0x8b90b51a;
            packet->X = (ushort)(0xFFFF & (Common.ExchangeShortBits((packet->X ^ packet->UID ^ 0x2ed6), 16 - 1) + 0xdd12));
            packet->Y = (ushort)(0xFFFF & (Common.ExchangeShortBits((packet->Y ^ packet->UID ^ 0xb99b), 16 - 5) + 0x76de));
        }
Code:
        public static uint ExchangeShortBits(uint data, int bits)
        {
            data &= 0xffff;
            return ((data >> bits) | (data << (16 - bits))) & 0xffff;
        }

        public static uint ExchangeLongBits(uint data, int bits)
        {
            return (data >> bits) | (data << (32 - bits));
        }
pro4never is offline  
Old 01/21/2015, 21:03   #10
 
elite*gold: 0
Join Date: Jul 2014
Posts: 402
Received Thanks: 540
Quote:
Originally Posted by pro4never View Post
Yahhh... just re-stating.

This is in every public source and has been for YEARS. If anyone had any need to understand how to process interaction packets, the most logical first step would to be see how other sources do it.

Boom, 100+ examples of it already written in every style you could hope to see.
It's even in the leaked EO source as well, if I remember correctly.
Best Coder 2014 is offline  
Thanks
1 User
Old 01/21/2015, 22:12   #11
 
elite*gold: 0
Join Date: Aug 2014
Posts: 22
Received Thanks: 6
pro4never,
im just training my self of using IDA Pro.
and i want to know if the code is Correct or not?
thanks for your replying.
AhmedZero is offline  
Old 01/21/2015, 23:34   #12
 
ImmuneOne's Avatar
 
elite*gold: 0
Join Date: Nov 2009
Posts: 754
Received Thanks: 544
Could you break down the information for me? I'm a bit slow when it comes to understanding things like this.
ImmuneOne is offline  
Thanks
2 Users
Old 01/22/2015, 00:55   #13
 
lostsolder05's Avatar
 
elite*gold: 20
Join Date: Jan 2006
Posts: 890
Received Thanks: 241
lostsolder05 is offline  
Old 01/22/2015, 15:02   #14
 
_DreadNought_'s Avatar
 
elite*gold: 28
Join Date: Jun 2010
Posts: 2,225
Received Thanks: 868
Quote:
Originally Posted by AhmedZero View Post
pro4never,
im just training my self of using IDA Pro.
and i want to know if the code is Correct or not?
thanks for your replying.
why can't you just test it yourself?
_DreadNought_ is offline  
Old 01/22/2015, 15:21   #15
 
elite*gold: 0
Join Date: Aug 2014
Posts: 22
Received Thanks: 6
because im not professional and i want to see the opinions about that.
AhmedZero is offline  
Reply


Similar Threads Similar Threads
8 Ball Pool v2.8.2 - FULL HACK ATTACK(video)
04/20/2014 - Facebook - 2 Replies
hey autowin when u release it?
8 Ball Pool v2.8.2 - FULL HACK ATTACK (video)
04/19/2014 - Facebook - 79 Replies
03 Hacks at same time against my opponent. - Line length - Bypass "NoGuideLine" - Secret attack (stop mouse of your opponent) 8 Ball Pool v2.8.2 - Full Hack 1080p HD - YouTube I'm trying to create a new autowin attack and cheatengine line codes. I'll release when done. Regards *** Miniclip will erase my account after this video hehe...
WTS>NA Elyos Kahrun Assassin 60 geared full attack +5
01/08/2013 - Aion Trading - 7 Replies
Weap: kahrun Dagger +10 add para godstone Guardian Captain's Poniard +10 add reduce attack speed Tiamat Guard's Stiletto add godstone 10% damge Vasharti's Dagger add godstone 10% damge <Tac Officer's Brand>1con Armor: <Gonon's Jerkin> 2con <Orai's Breeches> 1con <Orai's Shoulderguards> 1con <Orai's Vambrace> 1con <Orai's Boots> 1con Acces:<Guardian Commander's Corundum Earrings>x2 <Guardian Commander's Corundum Necklace>
Which Tanker Build full Str have the most powerful damage and attack power
03/12/2012 - Silkroad Online - 10 Replies
Which Tanker Build full Str have the most powerful damage and attack power i did make 3 pictures to camper between the builds see it and tell me what u think and Which one should i take http://img13.imageshack.us/img13/8249/roguee.th.j pg http://img715.imageshack.us/img715/2620/chinesef. th.jpg http://img825.imageshack.us/img825/8922/warriorg. th.jpg plz tell me why and what u see in every build and help me if u can
Full Brutal Attack
07/15/2008 - Kal Online - 8 Replies
Do is possible have always full brutal attack on vaga ? any cooldown cheats ?



All times are GMT +1. The time now is 17:22.


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.