AddBreakpoint Issues?

Ask for Help on Using the Language With Memory Hacking Software

Moderators: g3nuin3, SpeedWing, WhiteHat, mezzo

AddBreakpoint Issues?

Postby Shynd » Wed Feb 06, 2008 10:28 am

Code: Select all
void On_OpenProcess(HANDLE hProcess, DWORD dwProcessId)
{
   //wsock32_send = GetRemoteFuncAddress("WSOCK32.dll", "send");
   wsock32_recv = GetRemoteFuncAddress("WSOCK32.dll", "recv");
   ws2_32_send = GetRemoteFuncAddress("WS2_32.dll", "send");
   ws2_32_recv = GetRemoteFuncAddress("WS2_32.dll", "recv");
   
   //MessageBox(MBS_OK, "SLDKFJLS", "WSOCK32.dll:recv(): 0x%08X\nWS2_32.dll:send(): 0x%08X\nWS2_32.dll:recv(): 0x%08X", wsock32_recv, ws2_32_send, ws2_32_recv);
   
   if (MessageBox(MBS_YES|MBS_NO, "Enable Packet Editing/Sniffing?", "Would you like to enable the packet editing/sniffing breakpoints for %s?", GetCurProcessName()) == MBS_NO)
      return;
   
   AttachDebugger();
   
   SCRIPT_ADD_BP ws2_send_bp = {0};
   ws2_send_bp.aAddress = ws2_32_send + 0x05;
   ws2_send_bp.iType = SPBT_EXECUTE;
   ws2_send_bp.bHardware = true;
   ws2_send_bp.iCallback = SYS_FUNCS_SCRIPT_FUNC;
   ws2_send_bp.dwNewParms[1] = 1;
   ws2_send_bp.bSet = true;
   ws2_send_bp.pcName = "WS2_32:send()";
   AddBreakpoint(&ws2_send_bp, NULL);

}

Same as it used to be, never changed a thing, and now it's not creating the breakpoint. This is with 4.0.0.13 from the front page, downloaded about 2 hours ago. Is there something I'm doing wrong?
User avatar
Shynd
Acker
 
Posts: 68
Joined: Fri Jan 05, 2007 2:11 am

Postby L. Spiro » Wed Feb 06, 2008 10:42 am

I changed a bit on that area but it should not have caused it to stop working.
This just means I have to examine my changes again.
It will be fixed in the next release.


L. Spiro



[EDIT]
I saw the error.
http://www.memoryhacking.com/MemHack/MHS.rar
[/EDIT]
User avatar
L. Spiro
L. Spiro
 
Posts: 3129
Joined: Mon Jul 17, 2006 10:14 pm
Location: Tokyo, Japan


Postby mezzo » Wed Feb 06, 2008 3:00 pm

Cool. I had some issues there too... GetRemoteFuncAddress wouldn't work without defining the type of the return value.. (and I didn't know how to add MHS_ADDRESS as type).
- No thanks, I already have a penguin -
User avatar
mezzo
El Mariachi
 
Posts: 739
Joined: Mon Apr 30, 2007 10:27 pm
Location: Antwerp


Return to Help

Who is online

Users browsing this forum: No registered users and 0 guests