|
You last visited: Today at 17:22
Advertisement
Full Attack Decode
Discussion on Full Attack Decode within the CO2 Programming forum part of the Conquer Online 2 category.
01/21/2015, 14:03
|
#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(Packet, 0);
ushort Type = BitConverter.ToUInt16(Packet, 2);
int Time1 = BitConverter.ToInt32(Packet, 4);
int Time2 = BitConverter.ToInt32(Packet, 8);
ushort SpellID = BitConverter.ToUInt16(Packet, 28);
ushort ResponeDamage = BitConverter.ToUInt16(Packet, 30);
uint Attacker = BitConverter.ToUInt32(Packet, 12);
uint Attacked = BitConverter.ToUInt32(Packet, 16);
ushort X = BitConverter.ToUInt16(Packet, 20);
ushort Y = BitConverter.ToUInt16(Packet, 22);
ushort AttackType = BitConverter.ToUInt16(Packet, 24);
//X,Y Decryption
Y = (ushort)(Y ^ Attacker ^ 0xB99B);
Y = (ushort)(RotateLeftushort(Y, 5) + 0x76DE);
X = (ushort)(X ^ Attacker ^ 0x2ED6);
X = (ushort)(RotateLeftushort(X, 1) - 0x22EE);
//SpellID
SpellID = (ushort)(X ^ Attacker ^ 0x915D);
SpellID = (ushort)(RotateLeftushort(SpellID, 3) + 0x14BE);
//TargetUID
Attacked = (RotateRightuint(Attacked, 13) ^ 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 value, int count)
{
return (value << count) | (value >> (32 - count));
}
public static uint RotateRightuint(this uint value, int count)
{
return (value >> count) | (value << (32 - count));
}
public static ushort RotateLeftushort(this ushort value, short count)
{
return (ushort)(((value << count) | (value >> (16 - count))) & 0xFFFF);
}
public static ushort RotateRightushort(this ushort value, short count)
{
return (ushort)(((value >> count) | (value << (16 - count))) & 0xFFFF);
}
}
im dont test it yet thanks  .
|
|
|
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 ...
|
|
|
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.
|
|
|
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.
|
|
|
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.
|
|
|
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
|
|
|
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
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?
|
|
|
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.
|
|
|
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));
}
|
|
|
01/21/2015, 21:03
|
#10
|
elite*gold: 0
Join Date: Jul 2014
Posts: 402
Received Thanks: 540
|
Quote:
Originally Posted by pro4never
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.
|
|
|
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.
|
|
|
01/21/2015, 23:34
|
#12
|
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.
|
|
|
01/22/2015, 00:55
|
#13
|
elite*gold: 20
Join Date: Jan 2006
Posts: 890
Received Thanks: 241
|
|
|
|
01/22/2015, 15:02
|
#14
|
elite*gold: 28
Join Date: Jun 2010
Posts: 2,225
Received Thanks: 868
|
Quote:
Originally Posted by AhmedZero
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?
|
|
|
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.
|
|
|
 |
|
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.
|
|