Версия для печати темы
Нажмите сюда для просмотра этой темы в оригинальном формате
Форум программистов > C/C++: Системное программирование и WinAPI > подскажите хорошую библиотеку для перехвата API


Автор: leniviy 5.3.2008, 21:13
самому писать не реально

Автор: BorisVorontsov 5.3.2008, 23:58
Цитата(leniviy @  5.3.2008,  21:13 Найти цитируемый пост)
самому писать не реально


Что же там такого "нереального"?

Автор: dumb 6.3.2008, 02:29
"нереального" там действительно ничего нет, но если кажется сложным, попробуй, например, http://research.microsoft.com/sn/detours/.

Автор: leniviy 6.3.2008, 10:20
спасибо, нормально работает

Добавлено через 2 минуты и 6 секунд
я ужаснулся, когда посмотрел список хуков проги freecap
[telnet.exe] 15:47:27 [INJ]    Placing hook for "LoadLibraryA" in module `telnet.exe`
[telnet.exe] 15:47:27 [INJ]    Placing hook for "LoadLibraryA" in module `msvcrt.dll`
[telnet.exe] 15:47:27 [INJ]    Placing hook for "LoadLibraryA" in module `ADVAPI32.dll`
[telnet.exe] 15:47:27 [INJ]    Placing hook for "LoadLibraryA" in module `RPCRT4.dll`
[telnet.exe] 15:47:27 [INJ]    Placing hook for "LoadLibraryA" in module `USER32.dll`
[telnet.exe] 15:47:27 [INJ]    Placing hook for "LoadLibraryA" in module `GDI32.dll`
[telnet.exe] 15:47:27 [INJ]    Placing hook for "LoadLibraryA" in module `WS2_32.dll`
[telnet.exe] 15:47:27 [INJ]    Placing hook for "LoadLibraryA" in module `WS2HELP.dll`
[telnet.exe] 15:47:27 [INJ]    Placing hook for "LoadLibraryA" in module `SECUR32.dll`
[telnet.exe] 15:47:27 [INJ]    Placing hook for "LoadLibraryA" in module `ole32.dll`
[telnet.exe] 15:47:27 [INJ]    Placing hook for "LoadLibraryA" in module `r3god.dll`
[telnet.exe] 15:47:27 [INJ]    Placing hook for "LoadLibraryA" in module `oleaut32.dll`
[telnet.exe] 15:47:27 [INJ]    Placing hook for "LoadLibraryA" in module `comctl32.dll`
[telnet.exe] 15:47:27 [INJ]    Placing hook for "LoadLibraryA" in module `IMAGEHLP.DLL`
[telnet.exe] 15:47:27 [INJ]    Placing hook for "LoadLibraryA" in module `mswsock.dll`
[telnet.exe] 15:47:27 [INJ]    Placing hook for "LoadLibraryA" in module `hnetcfg.dll`
[telnet.exe] 15:47:27 [INJ]    Placing hook for "LoadLibraryA" in module `DNSAPI.dll`
[telnet.exe] 15:47:27 [INJ]    Placing hook for "LoadLibraryA" in module `WLDAP32.dll`
[telnet.exe] 15:47:27 [INJ]    Placing hook for "LoadLibraryA" in module `MSCTF.dll`
[telnet.exe] 15:47:27 [INJ]    Placing hook for "LoadLibraryA" in module `SHLWAPI.dll`
[telnet.exe] 15:47:27 [INJ]    Placing hook for "LoadLibraryA" in module `SHELL32.dll`
[telnet.exe] 15:47:27 [INJ]    Placing hook for "LoadLibraryA" in module `comctl32.dll`
[telnet.exe] 15:47:27 [INJ]    Placing hook for "LoadLibraryA" in module `msctfime.ime`
[telnet.exe] 15:47:27 [INJ]    Placing hook for "LoadLibraryA" in module `psapi.dll`
[telnet.exe] 15:47:27 [INJ] There're 24 hooks for "LoadLibraryA" placed
[telnet.exe] 15:47:27 [INJ]    Placing hook for "LoadLibraryW" in module `ADVAPI32.dll`
[telnet.exe] 15:47:27 [INJ]    Placing hook for "LoadLibraryW" in module `RPCRT4.dll`
[telnet.exe] 15:47:27 [INJ]    Placing hook for "LoadLibraryW" in module `USER32.dll`
[telnet.exe] 15:47:27 [INJ]    Placing hook for "LoadLibraryW" in module `GDI32.dll`
[telnet.exe] 15:47:27 [INJ]    Placing hook for "LoadLibraryW" in module `SECUR32.dll`
[telnet.exe] 15:47:27 [INJ]    Placing hook for "LoadLibraryW" in module `IMM32.dll`
[telnet.exe] 15:47:27 [INJ]    Placing hook for "LoadLibraryW" in module `ole32.dll`
[telnet.exe] 15:47:27 [INJ]    Placing hook for "LoadLibraryW" in module `oleaut32.dll`
[telnet.exe] 15:47:27 [INJ]    Placing hook for "LoadLibraryW" in module `comctl32.dll`
[telnet.exe] 15:47:27 [INJ]    Placing hook for "LoadLibraryW" in module `mswsock.dll`
[telnet.exe] 15:47:27 [INJ]    Placing hook for "LoadLibraryW" in module `hnetcfg.dll`
[telnet.exe] 15:47:27 [INJ]    Placing hook for "LoadLibraryW" in module `uxtheme.dll`
[telnet.exe] 15:47:27 [INJ]    Placing hook for "LoadLibraryW" in module `MSCTF.dll`
[telnet.exe] 15:47:27 [INJ]    Placing hook for "LoadLibraryW" in module `SHLWAPI.dll`
[telnet.exe] 15:47:27 [INJ]    Placing hook for "LoadLibraryW" in module `SHELL32.dll`
[telnet.exe] 15:47:27 [INJ]    Placing hook for "LoadLibraryW" in module `comctl32.dll`
[telnet.exe] 15:47:27 [INJ]    Placing hook for "LoadLibraryW" in module `msctfime.ime`
[telnet.exe] 15:47:27 [INJ] There're 17 hooks for "LoadLibraryW" placed
[telnet.exe] 15:47:27 [INJ]    Placing hook for "LoadLibraryExA" in module `ole32.dll`
[telnet.exe] 15:47:27 [INJ]    Placing hook for "LoadLibraryExA" in module `MSCTF.dll`
[telnet.exe] 15:47:27 [INJ]    Placing hook for "LoadLibraryExA" in module `SHLWAPI.dll`
[telnet.exe] 15:47:27 [INJ]    Placing hook for "LoadLibraryExA" in module `SHELL32.dll`
[telnet.exe] 15:47:27 [INJ]    Placing hook for "LoadLibraryExA" in module `msctfime.ime`
[telnet.exe] 15:47:27 [INJ] There're 5 hooks for "LoadLibraryExA" placed
[telnet.exe] 15:47:27 [INJ]    Placing hook for "LoadLibraryExW" in module `telnet.exe`
[telnet.exe] 15:47:27 [INJ]    Placing hook for "LoadLibraryExW" in module `ADVAPI32.dll`
[telnet.exe] 15:47:27 [INJ]    Placing hook for "LoadLibraryExW" in module `USER32.dll`
[telnet.exe] 15:47:27 [INJ]    Placing hook for "LoadLibraryExW" in module `GDI32.dll`
[telnet.exe] 15:47:27 [INJ]    Placing hook for "LoadLibraryExW" in module `ole32.dll`
[telnet.exe] 15:47:27 [INJ]    Placing hook for "LoadLibraryExW" in module `hnetcfg.dll`
[telnet.exe] 15:47:27 [INJ]    Placing hook for "LoadLibraryExW" in module `DNSAPI.dll`
[telnet.exe] 15:47:27 [INJ]    Placing hook for "LoadLibraryExW" in module `uxtheme.dll`
[telnet.exe] 15:47:27 [INJ]    Placing hook for "LoadLibraryExW" in module `SHLWAPI.dll`
[telnet.exe] 15:47:27 [INJ]    Placing hook for "LoadLibraryExW" in module `SHELL32.dll`
[telnet.exe] 15:47:27 [INJ] There're 10 hooks for "LoadLibraryExW" placed
[telnet.exe] 15:47:27 [INJ]    Placing hook for "FreeLibrary" in module `telnet.exe`
[telnet.exe] 15:47:27 [INJ]    Placing hook for "FreeLibrary" in module `msvcrt.dll`
[telnet.exe] 15:47:27 [INJ]    Placing hook for "FreeLibrary" in module `ADVAPI32.dll`
[telnet.exe] 15:47:27 [INJ]    Placing hook for "FreeLibrary" in module `RPCRT4.dll`
[telnet.exe] 15:47:27 [INJ]    Placing hook for "FreeLibrary" in module `USER32.dll`
[telnet.exe] 15:47:27 [INJ]    Placing hook for "FreeLibrary" in module `GDI32.dll`
[telnet.exe] 15:47:27 [INJ]    Placing hook for "FreeLibrary" in module `WS2_32.dll`
[telnet.exe] 15:47:27 [INJ]    Placing hook for "FreeLibrary" in module `WS2HELP.dll`
[telnet.exe] 15:47:27 [INJ]    Placing hook for "FreeLibrary" in module `SECUR32.dll`
[telnet.exe] 15:47:27 [INJ]    Placing hook for "FreeLibrary" in module `IMM32.dll`
[telnet.exe] 15:47:27 [INJ]    Placing hook for "FreeLibrary" in module `ole32.dll`
[telnet.exe] 15:47:27 [INJ]    Placing hook for "FreeLibrary" in module `oleaut32.dll`
[telnet.exe] 15:47:27 [INJ]    Placing hook for "FreeLibrary" in module `comctl32.dll`
[telnet.exe] 15:47:27 [INJ]    Placing hook for "FreeLibrary" in module `IMAGEHLP.DLL`
[telnet.exe] 15:47:27 [INJ]    Placing hook for "FreeLibrary" in module `mswsock.dll`
[telnet.exe] 15:47:27 [INJ]    Placing hook for "FreeLibrary" in module `hnetcfg.dll`
[telnet.exe] 15:47:27 [INJ]    Placing hook for "FreeLibrary" in module `DNSAPI.dll`
[telnet.exe] 15:47:27 [INJ]    Placing hook for "FreeLibrary" in module `WLDAP32.dll`
[telnet.exe] 15:47:27 [INJ]    Placing hook for "FreeLibrary" in module `uxtheme.dll`
[telnet.exe] 15:47:27 [INJ]    Placing hook for "FreeLibrary" in module `MSCTF.dll`
[telnet.exe] 15:47:27 [INJ]    Placing hook for "FreeLibrary" in module `SHLWAPI.dll`
[telnet.exe] 15:47:27 [INJ]    Placing hook for "FreeLibrary" in module `SHELL32.dll`
[telnet.exe] 15:47:27 [INJ]    Placing hook for "FreeLibrary" in module `comctl32.dll`
[telnet.exe] 15:47:27 [INJ]    Placing hook for "FreeLibrary" in module `msctfime.ime`
[telnet.exe] 15:47:27 [INJ]    Placing hook for "FreeLibrary" in module `psapi.dll`
[telnet.exe] 15:47:27 [INJ] There're 25 hooks for "FreeLibrary" placed
[telnet.exe] 15:47:27 [INJ]    Placing hook for "FreeLibraryAndExitThread" in module `WS2_32.dll`
[telnet.exe] 15:47:27 [INJ]    Placing hook for "FreeLibraryAndExitThread" in module `WS2HELP.dll`
[telnet.exe] 15:47:27 [INJ]    Placing hook for "FreeLibraryAndExitThread" in module `ole32.dll`
[telnet.exe] 15:47:27 [INJ]    Placing hook for "FreeLibraryAndExitThread" in module `mswsock.dll`
[telnet.exe] 15:47:27 [INJ]    Placing hook for "FreeLibraryAndExitThread" in module `hnetcfg.dll`
[telnet.exe] 15:47:27 [INJ]    Placing hook for "FreeLibraryAndExitThread" in module `uxtheme.dll`
[telnet.exe] 15:47:27 [INJ]    Placing hook for "FreeLibraryAndExitThread" in module `SHLWAPI.dll`
[telnet.exe] 15:47:27 [INJ] There're 7 hooks for "FreeLibraryAndExitThread" placed
[telnet.exe] 15:47:27 [INJ]    Placing hook for "GetProcAddress" in module `telnet.exe`
[telnet.exe] 15:47:27 [INJ]    Placing hook for "GetProcAddress" in module `msvcrt.dll`
[telnet.exe] 15:47:27 [INJ]    Placing hook for "GetProcAddress" in module `ADVAPI32.dll`
[telnet.exe] 15:47:27 [INJ]    Placing hook for "GetProcAddress" in module `RPCRT4.dll`
[telnet.exe] 15:47:27 [INJ]    Placing hook for "GetProcAddress" in module `USER32.dll`
[telnet.exe] 15:47:27 [INJ]    Placing hook for "GetProcAddress" in module `GDI32.dll`
[telnet.exe] 15:47:27 [INJ]    Placing hook for "GetProcAddress" in module `WS2_32.dll`
[telnet.exe] 15:47:27 [INJ]    Placing hook for "GetProcAddress" in module `WS2HELP.dll`
[telnet.exe] 15:47:27 [INJ]    Placing hook for "GetProcAddress" in module `SECUR32.dll`
[telnet.exe] 15:47:27 [INJ]    Placing hook for "GetProcAddress" in module `IMM32.dll`
[telnet.exe] 15:47:27 [INJ]    Placing hook for "GetProcAddress" in module `ole32.dll`
[telnet.exe] 15:47:27 [INJ]    Placing hook for "GetProcAddress" in module `r3god.dll`
[telnet.exe] 15:47:27 [INJ]    Placing hook for "GetProcAddress" in module `oleaut32.dll`
[telnet.exe] 15:47:27 [INJ]    Placing hook for "GetProcAddress" in module `comctl32.dll`
[telnet.exe] 15:47:27 [INJ]    Placing hook for "GetProcAddress" in module `IMAGEHLP.DLL`
[telnet.exe] 15:47:27 [INJ]    Placing hook for "GetProcAddress" in module `mswsock.dll`
[telnet.exe] 15:47:27 [INJ]    Placing hook for "GetProcAddress" in module `hnetcfg.dll`
[telnet.exe] 15:47:27 [INJ]    Placing hook for "GetProcAddress" in module `DNSAPI.dll`
[telnet.exe] 15:47:27 [INJ]    Placing hook for "GetProcAddress" in module `WLDAP32.dll`
[telnet.exe] 15:47:27 [INJ]    Placing hook for "GetProcAddress" in module `uxtheme.dll`
[telnet.exe] 15:47:27 [INJ]    Placing hook for "GetProcAddress" in module `MSCTF.dll`
[telnet.exe] 15:47:27 [INJ]    Placing hook for "GetProcAddress" in module `UnlockerHook.dll`
[telnet.exe] 15:47:27 [INJ]    Placing hook for "GetProcAddress" in module `SHLWAPI.dll`
[telnet.exe] 15:47:27 [INJ]    Placing hook for "GetProcAddress" in module `SHELL32.dll`
[telnet.exe] 15:47:27 [INJ]    Placing hook for "GetProcAddress" in module `comctl32.dll`
[telnet.exe] 15:47:27 [INJ]    Placing hook for "GetProcAddress" in module `msctfime.ime`
[telnet.exe] 15:47:27 [INJ]    Placing hook for "GetProcAddress" in module `psapi.dll`
[telnet.exe] 15:47:27 [INJ] There're 27 hooks for "GetProcAddress" placed
[telnet.exe] 15:47:27 [INJ]    Placing hook for "VirtualQuery" in module `msvcrt.dll`
[telnet.exe] 15:47:27 [INJ]    Placing hook for "VirtualQuery" in module `comctl32.dll`
[telnet.exe] 15:47:27 [INJ]    Placing hook for "VirtualQuery" in module `SHLWAPI.dll`
[telnet.exe] 15:47:27 [INJ] There're 3 hooks for "VirtualQuery" placed
[telnet.exe] 15:47:27 [INJ]    Placing hook for "SetWindowTextA" in module `comctl32.dll`
[telnet.exe] 15:47:27 [INJ]    Placing hook for "SetWindowTextA" in module `SHLWAPI.dll`
[telnet.exe] 15:47:27 [INJ]    Placing hook for "SetWindowTextA" in module `comctl32.dll`
[telnet.exe] 15:47:27 [INJ] There're 3 hooks for "SetWindowTextA" placed
[telnet.exe] 15:47:27 [INJ]    Placing hook for "SetWindowTextW" in module `ole32.dll`
[telnet.exe] 15:47:27 [INJ]    Placing hook for "SetWindowTextW" in module `comctl32.dll`
[telnet.exe] 15:47:27 [INJ]    Placing hook for "SetWindowTextW" in module `hnetcfg.dll`
[telnet.exe] 15:47:27 [INJ]    Placing hook for "SetWindowTextW" in module `uxtheme.dll`
[telnet.exe] 15:47:27 [INJ]    Placing hook for "SetWindowTextW" in module `SHLWAPI.dll`
[telnet.exe] 15:47:27 [INJ]    Placing hook for "SetWindowTextW" in module `SHELL32.dll`
[telnet.exe] 15:47:27 [INJ]    Placing hook for "SetWindowTextW" in module `comctl32.dll`
[telnet.exe] 15:47:27 [INJ] There're 7 hooks for "SetWindowTextW" placed
[telnet.exe] 15:47:27 [INJ]    Placing hook for "SetConsoleTitleW" in module `telnet.exe`
[telnet.exe] 15:47:27 [INJ]    Placing hook for "DefWindowProcA" in module `MSCTF.dll`
[telnet.exe] 15:47:27 [INJ]    Placing hook for "DefWindowProcA" in module `SHLWAPI.dll`
[telnet.exe] 15:47:27 [INJ]    Placing hook for "DefWindowProcA" in module `SHELL32.dll`
[telnet.exe] 15:47:27 [INJ]    Placing hook for "DefWindowProcA" in module `msctfime.ime`
[telnet.exe] 15:47:27 [INJ] There're 4 hooks for "DefWindowProcA" placed
[telnet.exe] 15:47:27 [INJ]    Placing hook for "DefWindowProcW" in module `telnet.exe`
[telnet.exe] 15:47:27 [INJ]    Placing hook for "DefWindowProcW" in module `IMM32.dll`
[telnet.exe] 15:47:27 [INJ]    Placing hook for "DefWindowProcW" in module `ole32.dll`
[telnet.exe] 15:47:27 [INJ]    Placing hook for "DefWindowProcW" in module `oleaut32.dll`
[telnet.exe] 15:47:27 [INJ]    Placing hook for "DefWindowProcW" in module `comctl32.dll`
[telnet.exe] 15:47:27 [INJ]    Placing hook for "DefWindowProcW" in module `uxtheme.dll`
[telnet.exe] 15:47:27 [INJ]    Placing hook for "DefWindowProcW" in module `SHLWAPI.dll`
[telnet.exe] 15:47:27 [INJ]    Placing hook for "DefWindowProcW" in module `SHELL32.dll`
[telnet.exe] 15:47:27 [INJ]    Placing hook for "DefWindowProcW" in module `comctl32.dll`
[telnet.exe] 15:47:27 [INJ] There're 9 hooks for "DefWindowProcW" placed
[telnet.exe] 15:47:27 [INJ]    Placing hook for "ShowWindow" in module `IMM32.dll`
[telnet.exe] 15:47:27 [INJ]    Placing hook for "ShowWindow" in module `ole32.dll`
[telnet.exe] 15:47:27 [INJ]    Placing hook for "ShowWindow" in module `comctl32.dll`
[telnet.exe] 15:47:27 [INJ]    Placing hook for "ShowWindow" in module `hnetcfg.dll`
[telnet.exe] 15:47:27 [INJ]    Placing hook for "ShowWindow" in module `MSCTF.dll`
[telnet.exe] 15:47:27 [INJ]    Placing hook for "ShowWindow" in module `SHLWAPI.dll`
[telnet.exe] 15:47:27 [INJ]    Placing hook for "ShowWindow" in module `SHELL32.dll`
[telnet.exe] 15:47:27 [INJ]    Placing hook for "ShowWindow" in module `comctl32.dll`
[telnet.exe] 15:47:27 [INJ]    Placing hook for "ShowWindow" in module `msctfime.ime`
[telnet.exe] 15:47:27 [INJ] There're 9 hooks for "ShowWindow" placed
[telnet.exe] 15:47:27 [INJ]    Placing hook for "CreateProcessA" in module `msvcrt.dll`
[telnet.exe] 15:47:27 [INJ]    Placing hook for "CreateProcessA" in module `MSCTF.dll`
[telnet.exe] 15:47:27 [INJ]    Placing hook for "CreateProcessA" in module `SHLWAPI.dll`
[telnet.exe] 15:47:27 [INJ] There're 3 hooks for "CreateProcessA" placed
[telnet.exe] 15:47:27 [INJ]    Placing hook for "CreateProcessW" in module `msvcrt.dll`
[telnet.exe] 15:47:27 [INJ]    Placing hook for "CreateProcessW" in module `USER32.dll`
[telnet.exe] 15:47:27 [INJ]    Placing hook for "CreateProcessW" in module `ole32.dll`
[telnet.exe] 15:47:27 [INJ]    Placing hook for "CreateProcessW" in module `SHLWAPI.dll`
[telnet.exe] 15:47:27 [INJ]    Placing hook for "CreateProcessW" in module `SHELL32.dll`
[telnet.exe] 15:47:27 [INJ] There're 5 hooks for "CreateProcessW" placed
[telnet.exe] 15:47:27 [INJ] Prepare for install WSOCK hooks...
[telnet.exe] 15:47:27 [INJ] Installing WSOCK hooks...
[telnet.exe] 15:47:27 [INJ]    Placing hook for "bind" in module `telnet.exe`
[telnet.exe] 15:47:27 [INJ]    Placing hook for "closesocket" in module `telnet.exe`
[telnet.exe] 15:47:27 [INJ]    Placing hook for "connect" in module `telnet.exe`
[telnet.exe] 15:47:27 [INJ]    Placing hook for "recv" in module `telnet.exe`
[telnet.exe] 15:47:27 [INJ]    Placing hook for "send" in module `telnet.exe`
[telnet.exe] 15:47:27 [INJ]    Placing hook for "setsockopt" in module `telnet.exe`
[telnet.exe] 15:47:27 [INJ]    Placing hook for "socket" in module `telnet.exe`
[telnet.exe] 15:47:27 [INJ]    Placing hook for "gethostbyname" in module `telnet.exe`
[telnet.exe] 15:47:27 [INJ]    Placing hook for "WSAGetLastError" in module `telnet.exe`
[telnet.exe] 15:47:27 [INJ]    Placing hook for "WSAStartup" in module `telnet.exe`
[telnet.exe] 15:47:27 [INJ]    Placing hook for "WSACleanup" in module `telnet.exe`
[telnet.exe] 15:47:27 [INJ]    Placing hook for "WSARecv" in module `WSOCK32.dll`
[telnet.exe] 15:47:27 [INJ]    Placing hook for "WSARecv" in module `mswsock.dll`
[telnet.exe] 15:47:27 [INJ] There're 2 hooks for "WSARecv" placed
[telnet.exe] 15:47:27 [INJ]    Placing hook for "WSARecvFrom" in module `WSOCK32.dll`
[telnet.exe] 15:47:27 [INJ]    Placing hook for "WSASocketA" in module `DNSAPI.dll`
[telnet.exe] 15:47:27 [INJ]    Placing hook for "WSASocketW" in module `mswsock.dll`
[telnet.exe] 15:47:27 [INJ]    Placing hook for "WSAIoctl" in module `mswsock.dll`
[telnet.exe] 15:47:27 [INJ]    Placing hook for "WSAIoctl" in module `DNSAPI.dll`

Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)