- 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?