Thread: [Help] C++ Winsock Hook
View Single Post
  (#7 (permalink)) Old
Ksbunker
Crew
 


64-Bit Member

 
Posts: 170
Join Date: Sep 2006
Last Online: 03-10-2010 11:05 AM
Reputation: Ksbunker is on a distinguished road
User is Offline
   
07-10-2009, 07:01 AM

frit0!

Good to see you're still floating around.

Nice help, as always.

Regarding the hardcoding of the prologue "mov edi, edi; push ebp; mov ebp, esp"... some systems and service packs have different prologues so it's probably not the best idea to hardcode it in.

But don't worry easy fix.

Just read the first 5 bytes of the orig function. Save somewhere. Then when unhooking, re-write the original bytes back. That way you know it's gonna match.

Last edited by Ksbunker; 07-10-2009 at 07:07 AM..
  
Reply With Quote