

![]() |
![]() |
|
|||||||
![]() |
![]() |
| Programming General non-hacking related programming. |
![]() |
|
|
LinkBack | Thread Tools |
![]() |
![]() |
|
|
#1 (permalink) |
|
Mortal
Join Date: Sep 2008
Posts: 9
![]() |
I'm new in hooking socket api and i had managed to hook send, sendto and recvfrom with modify IAT table, However i can't hook the recv.I find recv entrypoint is 0x71a42e70, but it can't make work, anyone can share tips or codes that managed to hook recv in warcraft 3?thanks!
![]() |
|
|
|
![]() |
![]() |
|
Advertisement
|
|
![]() |
![]() |
|
|
#4 (permalink) |
![]() ![]() ![]() Blessed |
If hooking via modifying the IAT isn't working, implement inline hooking (google is your friend). And Microz doesn't know anything, so don't get too worked up if he claims he wont help, or you're SOL.
One of the better API hooking topics on BWH: Trying to create a hook that hooks send(..) in WS2_32.dll |
|
|
|
![]() |
![]() |
![]() |
![]() |
|
|
#6 (permalink) |
|
Mortal
Join Date: Aug 2008
Posts: 6
![]() |
Check out @http://research.microsoft.com/sn/detours/. They've done a nice job with their injection library.
Mathias Rauen ("Madshi") also has a pretty sweet library for hooking. I believe it's the library WC3Banlist decided to use. You can find more info at @http://help.madshi.net/madCodeHook.htm. This page gives you a nice run-down of some different ways you can hook a method: @http://help.madshi.net/ApiHookingMethods.htm Last edited by devINVISIBLE : 09-05-2008 at 08:18 PM. |
|
|
|
![]() |
![]() |
![]() |
![]() |
|
|
#7 (permalink) |
|
Mortal
Join Date: Sep 2008
Posts: 9
![]() |
thanks all,I have sloved my problem! In war3, it uses 4 socketApi :"send,sendto ,WSARecv and WSARecvFrom "!
Code:
their offset address is :
mysendJmp.HookOneAPI((PROC)0x71a2428a,(FARPROC)hook_send);
mysendJmp.SetHookOn();
mysendtoJmp.HookOneAPI((PROC)0x71a22c69,(FARPROC)hook_sendto);
mysendtoJmp.SetHookOn();
mywsarecvfromJmp.HookOneAPI((PROC)0x71a2f652,(FARPROC)hook_wsarecvfrom);
mywsarecvfromJmp.SetHookOn();
mywsarecvJmp.HookOneAPI((PROC)0x71a24318,(FARPROC)hook_wsarecv);
mywsarecvJmp.SetHookOn();
|
|
|
|
![]() |
![]() |
![]() |
![]() |
|
|
#8 (permalink) |
|
Ereetu.
Senior Member
Game Hacking Staff ![]() ![]() High Priest Join Date: Oct 2005
Location: xor 1D27,1337
Posts: 1,565
![]() ![]() ![]() ![]() |
Don't use static addressess..
Use GetProcAddress to get the address. Something like: Code:
HANDLE hMod = GetModuleHandle("ws2_32.dll");
mysendJmp.HookOneAPI(GetProcAddress(hMod, "send"),(FARPROC)hook_send);
mysendJmp.SetHookOn();
...
__________________
![]() ![]()
|
|
|
|
![]() |
![]() |
![]() |
![]() |
|
|
#10 (permalink) |
![]() ![]() ![]() Blessed |
lawlz nub, prove me wrong then.
And FYI, take that petty kiddy BS attitude else where. Go give people ultimatums and troll in the flame board or general chat. |
|
|
|
![]() |
![]() |
![]() |
![]() |
|
|
#12 (permalink) |
![]() ![]() ![]() ![]() Disciple |
PHP Code:
Last edited by ulliklliwi : 09-09-2008 at 07:10 PM. |
|
|
|
![]() |
![]() |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| how to hook recv in Warcraft3 | feng | Warcraft Hacking Related | 5 | 09-07-2008 10:11 PM |
| how to get the base adress of a programm | Owyn | Programming | 6 | 09-04-2008 08:03 PM |
| Hook recv in Warcraft3 | tinman | Warcraft Hacking Related | 9 | 11-08-2007 04:41 AM |
| Trying to create a hook that hooks send(..) in WS2_32.dll | sleepster | Programming | 16 | 09-13-2006 10:33 AM |
| Tutorial: The easy way to make a keyboard hook. | Dyndrilliac | Programming | 40 | 09-07-2006 04:44 PM |
| All times are GMT. The time now is 05:52 PM. |

