|
[求助]线程键盘钩子问题
DWORD a = GetCurrentThreadId(); DWORD b = GetCurrentProcessId(); 在入口测试一下是在本进程内,内核应该也是投递APC的方法来创建的并进入入口点的吧 |
|
|
|
[求助]线程键盘钩子问题
我随便用工具来注入的,没写代码 |
|
[求助]线程键盘钩子问题
明白了,挂钩子后线程不能结束,否则钩子会给回收掉,虽然不大明白原理,总算搞定 // dlldlg.cpp : 定义 DLL 应用程序的入口点。 // #include "stdafx.h" HHOOK g_hh = 0; HANDLE g_hm = 0; char *szWindowName = "dlgtett"; LRESULT CALLBACK KeyboardProc( int code, // hook code WPARAM wParam, // virtual-key code LPARAM lParam // keystroke-message information ) { OutputDebugStringA("按键\r\n"); if ((wParam==VK_HOME)&&((lParam&(1<<31))==0)) { OutputDebugStringA("Hmoe\r\n"); } return CallNextHookEx(g_hh,code,wParam,lParam); } extern "C" __declspec(dllexport)void SetHook() { OutputDebugString("注入\r\n"); HWND hwnd = ::FindWindow(NULL,szWindowName); DWORD pid = 0; DWORD tid = 0; HINSTANCE hmod = NULL; if(hwnd) { OutputDebugStringA("找到窗口\r\n"); tid = ::GetWindowThreadProcessId(hwnd,NULL); g_hh = SetWindowsHookEx(WH_KEYBOARD,(HOOKPROC)KeyboardProc,(HINSTANCE)g_hm,tid); if(g_hh == NULL) OutputDebugStringA("错误\r\n"); } } DWORD ThreadProc(LPVOID lpParameter) { SetHook(); while(1) { Sleep(10000); continue; } return 1; } BOOL APIENTRY DllMain( HANDLE hModule, DWORD ul_reason_for_call, LPVOID lpReserved ) { if(ul_reason_for_call == DLL_PROCESS_ATTACH) { __asm int 3 g_hm = hModule; CreateThread(NULL,0,(LPTHREAD_START_ROUTINE)ThreadProc,NULL,0,NULL); } return TRUE; } |
|
QQ2010的聊天信息获取(已成功获取文本消息)
学习啦 我对com 的指针不熟悉 我不是勾CreateTextServices 我也是勾riched20内的函数,可惜没有5.1的调试符号 我也不知道具体勾那个函数了 反正我用windbg自己调试的 可以获得qq的聊天内容,但是无法分辨窗口 我现在的也学习搞这个,帅哥可以加我qq:44204242 大家一起学习 |
|
|
|
为什么手动脱upx的壳没脱干净,求教
我看了一下达文西是由 UPXShell来脱的,hijasen手动脱和我的就是一个模样嘛!! yangyy也只是用importRec剪了一个无效的导入表 Thunk数据 |
|
为什么手动脱upx的壳没脱干净,求教
那怎么样才能完美脱掉这个壳呢? |
|
[分享]也是静态注入
会改变节的属性的改变为可以写 |
|
导入表问题
我再仔细看一下LordPE把绑定输入表和IAT表都清空了。 |
|
导入表问题
回答的真仔细,非常感谢WXXW的细心和耐心 |
操作理由
RANk
{{ user_info.golds == '' ? 0 : user_info.golds }}
雪币
{{ experience }}
课程经验
{{ score }}
学习收益
{{study_duration_fmt}}
学习时长
基本信息
荣誉称号:
{{ honorary_title }}
能力排名:
No.{{ rank_num }}
等 级:
LV{{ rank_lv-100 }}
活跃值:
在线值:
浏览人数:{{ visits }}
最近活跃:{{ last_active_time }}
注册时间:{{ user_info.create_date_jsonfmt }}
勋章
兑换勋章
证书
证书查询 >
能力值