Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Kal Online
You last visited: Today at 19:26

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

Advertisement



2nd Recv Hook Problem

Discussion on 2nd Recv Hook Problem within the Kal Online forum part of the MMORPGs category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Nov 2007
Posts: 170
Received Thanks: 4
2nd Recv Hook Problem

Hello Guys .

i m trying to hook the 2nd Recv function the hook is success and just recv 1 packet after that the game is crash Here the code

Source code
Code:
int MyRecvBack = 0x0052E860 + 4;

int Naked RecvDetour(char* Data, LPCSTR format,...)
{
	__asm
	{
		push    ebp
		mov     ebp, esp
		push    ecx
	}

	Color(15);
	printf(RecvText, 1, format);

	__asm

	{

		jmp MyRecvBack;

	}
}

Intercept( INST_JMP , 0x0052E860, ( DWORD) RecvDetour , 5);
Here is the function in ollydbg

MenPirate is offline  
Old 01/03/2018, 03:54   #2
 
elite*gold: 0
Join Date: Nov 2011
Posts: 222
Received Thanks: 50
show the bytes after your hook and jmp is 5 bytes you jumping back +4 bytes
A.k.A. is offline  
Old 01/03/2018, 11:59   #3
 
elite*gold: 0
Join Date: Nov 2007
Posts: 170
Received Thanks: 4
i tried it and the game still crashing

near 128 view and no one can help ? wake up guys
MenPirate is offline  
Old 01/03/2018, 19:14   #4
 
elite*gold: 0
Join Date: Jul 2011
Posts: 72
Received Thanks: 11
Well idk if you are playing on int or a pserver, (got no idea about any pserver or how they check and prevent these stuffs), but as you posted this in august 2016 "https://www.elitepvpers.com/forum/kal-online/4102752-intercept-not-working-int-server.html" i assume you are talking about int, and luki respond with "Xtra detects changes in engine code section. But it will allow you to use send function as your own" = you can use kal their sendfunction as your own, but doing the intercept to check what you send will kick you out the game (xtrap), same with recv (not that u could use recv function as you would use send), so i doubt u'll get recv working with intercept....

Quote:
Originally Posted by nokia999 View Post
If u read at last few posts u will know that:
a) don't hook recv / send function in kal (or you must patch xtrap to work it)
b) hook recv / send in ws2_32 and place hook 5 bytes after func start to work ( xtrap check this functions prolog).
c) use other magic metods xD
d) 0xfffffffffffff topics about it here and on other forums.....
or use detours for recv, there are alot of topics where u could actually leech a function for it (maybe u need small edits)
TheRealPower is offline  
Old 01/03/2018, 22:57   #5
 
elite*gold: 0
Join Date: Nov 2011
Posts: 222
Received Thanks: 50
Quote:
Originally Posted by MenPirate View Post
i tried it and the game still crashing

near 128 view and no one can help ? wake up guys
ofc game will still crash you overwritting 5 bytes but you restoring only 3 bytes on your hook function i asked you to post olly screen after your hook is set
A.k.A. is offline  
Reply


Similar Threads Similar Threads
recv hook problem
04/12/2015 - C/C++ - 15 Replies
hey, also ich habe ein kleines problem, oder doch eher großes problem:o arbeite gerade zum ersten mal mit hooks und so und hab versucht recv zu hooken, also ich habe in einem spiel die recv funktion gehookt( glaube zumindest das ich das hab):D z.b wenn ich mich einlogge sehe ich auch meine id/pw name etc.. andere namen die erscheinen kommen auch vor , aber am meisten ist da son müll drin Unbenannt.png - directupload.net sobald ich auf log in drücke kommen extreeeeem viele recv an ( ka ob...
[VK]Captain 2nd Class & 2nd.Leutant 2nd Class
12/28/2010 - CrossFire Trading - 9 Replies
Hallo liebe Elitepvpers Community , da ich jetzt leider aufhöre mit Crossfire und für was bestimmtes spare verkaufe ich nun meine beiden Crossfire Accounts. Captain Account 2nd Class Z8Games ? Home of the Best Free MMO Games - Clans - Character Details M4A1 Crystal AWM - Red Dragon AK Scope
[C++]Hook all Recv function Problem
08/21/2010 - C/C++ - 5 Replies
Hi Leute wenn ich send hooke egal welches läuft das alles super nur wenn ich irgendein recv hooke habe ich immer eine Packet size von 1000 bis 10000. sry das ich schon wieder nerve #include "WinSock2.h" #include <cstdio> #include <ctime> #include <fstream> #include <iomanip>
[Question] Hooking send() & recv() works, but recv hiding data for co???
05/06/2009 - CO2 Programming - 2 Replies
Hey guys, I've been making a DLL to allow another program to intercept the packets of conquer using windows pipes. (Then its the job of the main program to decrypt the packets, the DLL only gives a communication channel for the main program) (winsock functions btw) - hooking send() works fine for my internet browser - hooking recv() works fine for my internet browser - hooking send() works fine for conquer online
S> 2nd rb Archer + 2nd rb Trojan + 2nd rb Water
06/03/2008 - Conquer Online 2 Trading - 0 Replies
Why am I selling these: So far I have sold many of my chars through here and have had some pretty succesfull deals, leading to me selling the last bit of chars I have got left, if you are looking for 2 sockets other then a bow, then this aint the deal you're looking for, allthough the chars are pretty good and for a newcomer or someone who never had any luck the gear aint all that bad. Selling the following: Water 130 / Archer 130 / Archer 70 Water 130 / Water 130 / Trojan 130 Warrior...



All times are GMT +1. The time now is 19:26.


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.