Register for your free account! | Forgot your password?

You last visited: Today at 22:38

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

Advertisement



[Release]INT Hack Example

Discussion on [Release]INT Hack Example within the Kal Hacks, Bots, Cheats & Exploits forum part of the Kal Online category.

Reply
 
Old 01/17/2011, 17:14   #31
 
meak1's Avatar
 
elite*gold: 220
Join Date: Jun 2007
Posts: 3,768
Received Thanks: 1,126
jeah google solve it, why u not google create proxy dll c++ or so????

here is enough released now, now its ur turn

Edit: 1minute epvp search function >.<
meak1 is offline  
Old 01/17/2011, 17:28   #32
 
elite*gold: 0
Join Date: Feb 2008
Posts: 116
Received Thanks: 2
so ... there isnt a dll file in ur forum Blood ... u mean about the Kalonlinehook.dll ?
thekingisback is offline  
Old 01/17/2011, 17:33   #33
 
strik3r2k5's Avatar
 
elite*gold: 0
Join Date: Jun 2006
Posts: 1,203
Received Thanks: 366
Enough tuts for you.
If you still cant run this simple dll, then you should start with 0!
strik3r2k5 is offline  
Old 01/17/2011, 18:05   #34
 
elite*gold: 0
Join Date: Feb 2008
Posts: 138
Received Thanks: 11
Thiesius tutorial appears on many forums like the link you just posted now. I did not found another tutorial with google yet.
Verdacht is offline  
Old 01/29/2011, 12:25   #35
 
elite*gold: 0
Join Date: Dec 2009
Posts: 81
Received Thanks: 31
Quote:
PHP Code:
/***********************************
Credits to .....?! I don't know o.O
************************************/
int ASyncPos 0;
int FinalSize 0;
int WINAPI FilterRecv(SOCKET Socket,char *Bufferint iLengthint iFlags)
{
        if (
ASyncPos==FinalSize && FinalSize>0)
    {
        
MyRecv(BufferASyncPos);

        
ASyncPos 0;
    }
    
int RecvRET DetourRecv(SocketBufferiLengthiFlags);
    if (
RecvRET<0)
    {
        return 
RecvRET;
    }
    if (
ASyncPos==0)
        
FinalSize = *((short int*) Buffer);
    
ASyncPos+=RecvRET;
    
    return 
RecvRET;

That would be my "MagicRecv" :P

About receive:
Received packets are encrypted. Server sends data size first, then a packet with the data then an unknown packet (sometimes more).

int RecvRET = DetourRecv(Socket, Buffer, iLength, iFlags);
RecvRET returns < 0 (I believe -1) for the unknown packets.

Luckily for most people here, the decrypted packet is stored in the same memory as the encrypted packet (Encrypted data gets replaced by decrypted data).

My MagicRecv waits for the unknown packet to be received before the buffer gets analysed. This gives the kal client enough time to decrypt the received packet.

This way you get a small delay in packet handling, but... imho, it is the next best solution after decrypting the packet yourself


btw..
My original release of the code was:
PHP Code:
int ASyncPos=0;
int FinalSize=0;

int WINAPI __stdcall MyMagicRecv(SOCKET s, const unsigned charbufint lenint flags)
{

    if (
ASyncPos==FinalSize && FinalSize>0)
    {
        
HandlePacket(bufASyncPos);
        
ASyncPos 0;
    }
    
int ret OrigRecv(s,buf,len,flags);
    if (
ret<0)
    {
        return 
ret;
    }
    if (
ASyncPos==0)
        
FinalSize = *((short int*) buf);
    
ASyncPos+=ret;
    return 
ret;

ILikeItEasy is offline  
Thanks
1 User
Old 01/29/2011, 15:25   #36
 
Thiesius's Avatar
 
elite*gold: 0
Join Date: Feb 2009
Posts: 256
Received Thanks: 474
I think the engine calls the recv twice. First time it specifies buffer length to 2, so the buffer receives only length. Then it does few size checks and calls the recv again for full packet.

To get your recv synchronized with send I would recommend (beside direct hook which is the most correct solution) to check for caller address and if you are supposed to get full packet then decrypt it manually. It's useful if you are generating AESKeys (So you don't have to change the source every week) and you don't want synchronize the sendcrypt with recv manually (It doesn't look very nice).
Thiesius is offline  
Thanks
1 User
Old 01/29/2011, 16:27   #37
 
elite*gold: 0
Join Date: Dec 2009
Posts: 81
Received Thanks: 31
Yeah, recv gets size first, then data.

MagicRecv makes 3 loops to get the full packet

1st: Get first 2 bytes (= size of full packet)
2nd: Get content of packet
3rd: ret < 0 go start your packet handling
any other ret < 0 loops will be ignored until we get a ret=2 for the next start of a packet.

If you have your own decrypt, the principle works about the same.
1st ret>0 --> Toggle=0
2nd ret>=0 --> Toggle=1
Toggle=1 --> copy buffer, decrypt, handle packet

ret<0 ignore always
ILikeItEasy is offline  
Thanks
1 User
Old 01/31/2011, 14:36   #38
 
DrogenViech's Avatar
 
elite*gold: 0
Join Date: Dec 2005
Posts: 152
Received Thanks: 10
Did anyone come up with the mob-attack-packet yet? I made a bot and unfortunaly i have no direct send-hook so i can't take a look at what an regular left-click-attack-packet looks like
DrogenViech is offline  
Old 01/31/2011, 14:47   #39




 
bloodx's Avatar
 
elite*gold: 55
Join Date: Mar 2006
Posts: 4,582
Received Thanks: 1,539
0x0C-bd-1-MonsterUID
bloodx is offline  
Thanks
1 User
Old 01/31/2011, 14:48   #40
 
DrogenViech's Avatar
 
elite*gold: 0
Join Date: Dec 2005
Posts: 152
Received Thanks: 10
Quote:
Originally Posted by bloodx View Post
0x0C-bd-1-MonsterUID
Oh gott! Danke

Oh ***, Thanks!
DrogenViech is offline  
Old 02/17/2011, 19:40   #41
 
DrogenViech's Avatar
 
elite*gold: 0
Join Date: Dec 2005
Posts: 152
Received Thanks: 10
Irgendwer 'ne Idee warum das, was ich gebastelt hab' alle paar Stunden crasht? Bekomme oefter auch einfach C/L

Edit:
Die Exception.dmp datei weist mich oefter auf folgende Zeile hin:

if (RecvRET < 0)

Scheint also irgendwas mit dem Receive hook zu tun zu haben.
DrogenViech is offline  
Old 02/17/2011, 20:10   #42
 
elite*gold: 42
Join Date: Jun 2008
Posts: 5,425
Received Thanks: 1,888
Quote:
Originally Posted by DrogenViech View Post
Irgendwer 'ne Idee warum das, was ich gebastelt hab' alle paar Stunden crasht? Bekomme oefter auch einfach C/L

Edit:
Die Exception.dmp datei weist mich oefter auf folgende Zeile hin:

if (RecvRET < 0)

Scheint also irgendwas mit dem Receive hook zu tun zu haben.
Haste wohl scheiße zusammengebastelt :>
MoepMeep is offline  
Old 02/17/2011, 20:16   #43
 
meak1's Avatar
 
elite*gold: 220
Join Date: Jun 2007
Posts: 3,768
Received Thanks: 1,126
hm viell. hast du bei deinem "selber" gebasteltem zuviel c&p benutzt =/
meak1 is offline  
Old 02/17/2011, 20:54   #44
 
DrogenViech's Avatar
 
elite*gold: 0
Join Date: Dec 2005
Posts: 152
Received Thanks: 10
Mensch Leute, hackt doch nicht so auf den blutigen Anfängern rum D:
Ich sollte mir echt tutorials nehmen, statt alles durch learning by doing zu versuchen (das klappt naemlich wie's aussieht nur bei Lua).

Edit:
Weiss jemand wenigstens, ob die gepostete Source im ersten Post noch vernuenftig funktioniert? Falls ja, muss ich meinen kram wohl einfach neu anfangen
DrogenViech is offline  
Old 02/18/2011, 13:33   #45
 
elite*gold: 42
Join Date: Jun 2008
Posts: 5,425
Received Thanks: 1,888
Lass halt einfach 24Stunden das von Bloodx laufen, dann weißte es :>
MoepMeep is offline  
Reply


Similar Threads Similar Threads
[Release] Vac Hack, Zoom hack, auto pot hack, Speed hack me+ mobs, shop hack...
04/02/2011 - Dekaron Exploits, Hacks, Bots, Tools & Macros - 25 Replies
Deleted people must learn to do it by them self from now off ! :)
Release *Private Hack* Release -->XiaoIJJI Hack RiceBall included
11/14/2008 - GunZ - 8 Replies
New Program Hack Work In IJJI Gunz Since 21 OCT 2008 Release - XiaoIJJI V1.0 Non-Crushing Hack =D Hot Key ALT+ L - LawnMower + M - Insane Massive + U - InsaneUpperCut



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


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.