|
You last visited: Today at 16:12
Advertisement
Hooked recv/send functions , have problem (pro's only)
Discussion on Hooked recv/send functions , have problem (pro's only) within the Kal Online forum part of the MMORPGs category.
05/22/2015, 00:27
|
#1
|
elite*gold: 0
Join Date: Aug 2006
Posts: 128
Received Thanks: 18
|
Hooked recv/send functions , have problem (pro's only)
So i did it finally ^^
My problem now is that after 20 sec i stop getting calls to send/recv functions ?
The hook is still attached,client still connected , any one please(BakaBug where are you !!!!) ?
Thanks !
|
|
|
05/22/2015, 00:35
|
#2
|
elite*gold: 20
Join Date: Jul 2007
Posts: 1,979
Received Thanks: 270
|
Quote:
Originally Posted by Staviko
My problem now is that after 20 sec i stop getting calls to send/recv functions ?
|
Quote:
Originally Posted by Staviko
The hook is still attached
|
somethings contrary
|
|
|
05/22/2015, 00:38
|
#3
|
elite*gold: 0
Join Date: Aug 2006
Posts: 128
Received Thanks: 18
|
yes exactly , that what i cant understand...as u can see if i try to replace/rename the dll it is still in memory ....also you can see the gui still running and no expel from server means my process is undetected, maybe they have some new trick ?
lol same problem ^^
thanks meak1 (:
meak1 please help,cant understand ):
how it will work ? you mean to place the jump after 5 byte of real jump ?
so how our jump will be called ?
Code:
GetProcAddress(GetModuleHandleA("ws2_32.dll"), "send")+5
?
|
|
|
05/23/2015, 17:51
|
#4
|
elite*gold: 220
Join Date: Jun 2007
Posts: 3,768
Received Thanks: 1,126
|
#Yes
Code:
int Naked MySendDetour(SOCKET s,char *buf, int len, int flags){
_asm{
SUB ESP, 0x10
PUSH ESI
PUSH EDI
}
MySendResult(buf);
_asm{
jmp addressbackSend
}
}
Intercept(INST_JMP, (DWORD)send+0x05,(DWORD)MySendDetour,5);
|
|
|
05/23/2015, 21:09
|
#5
|
elite*gold: 0
Join Date: Feb 2008
Posts: 1,105
Received Thanks: 186
|
meak is not helping at all qq ahaha
|
|
|
05/24/2015, 12:01
|
#6
|
elite*gold: 0
Join Date: Aug 2006
Posts: 128
Received Thanks: 18
|
meak1 is the best !
|
|
|
05/24/2015, 13:28
|
#7
|
elite*gold: 0
Join Date: Sep 2008
Posts: 108
Received Thanks: 23
|
What should be in addressbackSend?
|
|
|
05/24/2015, 15:10
|
#8
|
elite*gold: 220
Join Date: Jun 2007
Posts: 3,768
Received Thanks: 1,126
|
Quote:
Originally Posted by luki180pl
What should be in addressbackSend?
|
maybe the backsend address ?
|
|
|
05/24/2015, 16:01
|
#9
|
elite*gold: 0
Join Date: Aug 2006
Posts: 128
Received Thanks: 18
|
Code:
RealSend = (SendPtr)GetProcAddress(GetModuleHandleA("ws2_32.dll"), "send");
BYTE* back = (BYTE*)RealSend+10;
_asm{
jmp back;
}
?
Code:
Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
 hhhhh
haha
Code:
Applications should call FlushInstructionCache if they generate or modify code in memory. The CPU cannot detect the change, and may execute the old code it cached
also need to save registers...using push/pop/ad/fd
|
|
|
05/26/2015, 16:01
|
#10
|
elite*gold: 0
Join Date: Sep 2008
Posts: 108
Received Thanks: 23
|
Thx Staviko, actually my problem was that i wrote +"0x10" istead of +"0xA".
"also need to save registers...using push/pop/ad/fd" - possibly too hard for me as i know nothing about assembler at all ^^
|
|
|
05/26/2015, 18:07
|
#11
|
elite*gold: 55
Join Date: Oct 2009
Posts: 5,471
Received Thanks: 1,479
|
Quote:
Originally Posted by luki180pl
Thx Staviko, actually my problem was that i wrote +"0x10" istead of +"0xA".
"also need to save registers...using push/pop/ad/fd" - possibly too hard for me as i know nothing about assembler at all ^^
|
Basically you save the current state of the code before the client executes your hook and restore it afterwards. This is required to prevent corrupted states after calling your hook.
Code:
pushad
pushfd
jmp YOUR_HOOK
popfd
popad
For more informations consult
|
|
|
05/26/2015, 20:04
|
#12
|
elite*gold: 0
Join Date: Aug 2006
Posts: 128
Received Thanks: 18
|
try pushad pushfd for save integers and flags from original program on stuck befor call ur hook popad popfd after finish ur hook and jmp back
lolll froatol dident saw ur post ^^ hhh
anything u have 2 know ^^
|
|
|
05/26/2015, 23:08
|
#13
|
elite*gold: 0
Join Date: Sep 2008
Posts: 108
Received Thanks: 23
|
Thanks for answers Frosttall and Staviko. Im gonna give it a try tomorrow and tell u the results ^^
|
|
|
05/27/2015, 01:36
|
#14
|
elite*gold: 220
Join Date: Jun 2007
Posts: 3,768
Received Thanks: 1,126
|
my hook dont change registerslol
|
|
|
05/27/2015, 08:00
|
#15
|
elite*gold: 55
Join Date: Oct 2009
Posts: 5,471
Received Thanks: 1,479
|
Quote:
Originally Posted by meak1
my hook dont change registerslol
|
Well you're lucky then , but it is good style to clean up after your work is done.
|
|
|
 |
|
Similar Threads
|
Hooked recv(Winsock) problem
11/26/2013 - C/C++ - 9 Replies
Hi!
Ich habe die send&recv function von Winsock gehooked (von einem Spiel).
Das Problem aber ist irgendwie die recv Funktion und zwar liefert sie mir falsche Werte bzw. "unmögliche" Werte. Verglichen mit WPE Pro liefert WPE Pro die richtigen Werte.
Siehe Screens: (Achtets aufs Recv)
Mein Sniffer:
http://i.epvpimg.com/5TpRc.png
WPE Pro:
|
recv/send int kal
06/01/2012 - Kal Online - 9 Replies
Does anyone have a working recv/send for int today?
|
[Recv] Send Self
10/31/2011 - Nostale - 4 Replies
Ich wollte fragen ob hier noch irgendwer erfahrungen in ASM hat.
Suche nämlich die Sendself Funktion aber weiß ned wie ich weiter suchen soll habs schon rückwerts über die Sockte Funktionen versucht aber kein wirklicher Erfolg.
Brauche die Send Self Funktion um nach Sendpackets zu suchen.
Falls mir wer Helfen kann aber ned offen osten will geht auch per PN.
|
Send Recv
08/18/2009 - Kal Online - 0 Replies
Hey;)
I start checking this code http://www.elitepvpers.com/forum/kal-hacks-bots-che ats-exploits/189618-release-kalhackzz-v0-3-v0-4-so urces.html but i cant still send a packet of move just to see my player moving.Maybe this code is obsolete i dont know if there are better send and rev codes just tell me
When dll process attach happens i call my function _beginthread(f,0,NULL);
void f(void* start_parameter){
Console(); //Get the console
printf("DLL loaded");
|
[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
|
All times are GMT +1. The time now is 16:13.
|
|