-
Do it Urself -->Screwing up GunBound's Window II
by RainMart
Link de Descarga
In this part, i will show u how to prevent GG's local hooks.
Some of u, probably know that GG is injecting their DLL in all running processes & hooking 46 APIs.
The easiest way to prevent the local hooks is to install our own system-hook, which will catch all system messages just before GG's DLL does
Here is a code example, which u should put into ur DLL with the hook:
Código:
LRESULT CALLBACK SysMsgProc( int code, // hook code WPARAM wParam, // removal flag LPARAM lParam // address of structure with message ){ //CallNextHookEx(SysHook, code, wParam, lParam); if (code == HC_ACTION) { Wnd=((tagMSG*)lParam)->hwnd; // here we get the handle to the window, even the gunbound's window if (((tagMSG*)lParam)->message == WM_RBUTTONDOWN) { HDC hdc; hdc = GetDC (Wnd); //here we get the DC, which is normally hooked
Beep (100,20); POINT pt; GetCursorPos (&pt); TextOut (hdc, pt.x, pt.y, "RainMart", 8); BitBlt (hdc, 0, 0, 200,200,hdc,200,200,SRCCOPY); // BitBlt API was hooked as well >> not anymore
** ** return 0;**
With this method u can finally draw into GunBound's window, read pixels etc.
p.s. This method won't work on global hooks (eg. LineTo, GetPixel etc...)
p.p.s here is the proof >> just start GunBound & click right mouse button. U will see a text "RainMart" & a piece of GBs screen copied by hooked BitBlt for a few miliseconds.
Download File:
http://adf.ly/2J5JE
Permisos de Publicación
- No puedes crear nuevos temas
- No puedes responder temas
- No puedes subir archivos adjuntos
- No puedes editar tus mensajes
-
Reglas del Foro
CONTACTE AL ADMINISTRADOR MSN: ADMIN (@) 9REYES . NET
Marcadores