![]() | |
| |||||||
| Home | Register | Blogs | FAQ | Members List | Calendar | Downloads | Arcade | Mark Forums Read |
| Languages, Compilers and Interpreters C,C++,C#,.NET,Java,PHP,Perl,SQL and more |
![]() |
| | LinkBack | Thread Tools | Display Modes |
| | #1 |
| Administrator Join Date: Sep 2001 Location: South Korea, Gumi
Posts: 7,194
Blog Entries: 15 Rep Power: 10 Reputation:
313 | GDI Hooking Any sample code or article for systemwide GDI hooking ? It seems to me the techniques are kept in secret since all Remote Controlling softwares are using them in commercial purposes ![]() |
| | |
| | #3 |
| Administrator Join Date: Sep 2001 Location: South Korea, Gumi
Posts: 7,194
Blog Entries: 15 Rep Power: 10 Reputation:
313 | I have an application executable, which is not developed by myself, simply - I don't have the source code of that application. It has some GDI text output which I need to capture with my application whenever text output funtion is called. |
| | |
| | #4 |
| Дошкольник Join Date: May 2002 Location: The Dark Side of The Moon
Posts: 102
Rep Power: 7 Reputation:
10 | At home I have sources of keyboard hook by myself I will post them today evening or tomorrow morning if it can help you in VC 6.0 or 7.0 with GDI shold be tha same
__________________ BM |
| | |
| | #6 |
| Administrator | is windows messaging used during console input/output ? What about tracing system-wide all WM_SETTEXT/WM_GETTEXT messages? The most suitable decision I see in a system-wide hook set on every "CreateFont()"+"WM_SETTEXT" pair. I.e. somehow (?) traced CreateFont API, then upon appearance - started to trace EVERY WM_SETTEXT sent by specified application untill "DeleteObject" called. h-m..?
__________________ И повешенные могут качаться в неположенную сторону. /С.Е.Лец/ |
| | |
| | #7 |
| Грустно... | Касательно консольного ввода/вывода - то ReadConsole позволяет отслеживать keyboard, mouse events.
__________________ http://аvitya.livejournal.com Хотели, как лучше, а получилось даже хуже... Лозунг шахматиста: На каждый шах - ответим матом! |
| | |
| | #8 | |
| Administrator Join Date: Sep 2001 Location: South Korea, Gumi
Posts: 7,194
Blog Entries: 15 Rep Power: 10 Reputation:
313 | Quote:
As well as I am concerned WS_SET/GETTEXT are not GDI functions. Can you tell me in details how to set system-wide hook on CreateFont? If yes the problem is solved ! GDI text output is performed using *TextOut functions. I want to capture exactly that one. Thank you. | |
| | |
| | #9 | |
| Дошкольник Join Date: Mar 2003 Location: 2A
Posts: 102
Rep Power: 6 Reputation:
10 | Quote:
Как реализовать это? Ищи в интернете "DLL Injection API Hooking". | |
| | |
| | #11 |
| Грустно... | Джеффри Рихтер, если что ![]()
__________________ http://аvitya.livejournal.com Хотели, как лучше, а получилось даже хуже... Лозунг шахматиста: На каждый шах - ответим матом! |
| | |
| | #12 | |
| Administrator Join Date: Sep 2001 Location: South Korea, Gumi
Posts: 7,194
Blog Entries: 15 Rep Power: 10 Reputation:
313 | Quote:
П.С. Неужели заразы типа Remote Control applcations тоже меняют gdi32.dll... больше не буду такие гадости ставить(PCAnywhere, Remote Admin...) ![]() Спасибо. | |
| | |
| | #13 | |
| Дошкольник Join Date: Mar 2003 Location: 2A
Posts: 102
Rep Power: 6 Reputation:
10 | Quote:
Кстати не объязательно на диске менять gdi32.dll. Можно его менять в ОЗУ (CreateRemoteThread?, OpenProcess, ReadProcessMemory ....). Рихтера тоже смотри, там есть хорошие примеры. | |
| | |
![]() |
| Thread Tools | |
| Display Modes | |
| |