|
[下载]iOS Hacker's Handbook
好东西,由浅入深 |
|
[原创]女人是不是不适合学逆向啊
这么老的贴都被顶起来了 |
|
|
|
[原创]自己写的俄罗斯方块
辛苦了,支持 |
|
自己写的代码编译时报错,希望帮忙改改!
DllMain中引用了函数ThreadProc, ThreadProc在下面定义的,编译器编译期间找不到符号, 还不明白就找本c/c++书籍去看看c/c++语法~ |
|
xxxxxxxxxxxx
可以把这块抓上,还是很多人想搞的。 突然想到一个新闻: 中南大学最年轻教授级研究员称将用奖励款买房 http://learning.sohu.com/20120326/n338861651.shtml |
|
求助:如何获取CPU硬件特征码用于绑定机器
不管mac,cpuid获取的信息,硬盘信息等等,大规模使用总有问题的。 |
|
自己写的代码编译时报错,希望帮忙改改!
这样复制回去看看 #include "stdafx.h" #include "shrmp.h" #include <windows.h> #include "mxd.h" #include <stdio.h> #include <winbase.h> #include <iostream.h> //全局变量 int gIHotF9; BOOL showFlag; mxd *pdlg; #ifdef _DEBUG #define new DEBUG_NEW #undef THIS_FILE static char THIS_FILE[] = __FILE__; #endif void SetHotKey()//设置热键 { gIHotF9 = GlobalAddAtom("show")-0xC000; RegisterHotKey(NULL, gIHotF9, 0, VK_F9); } void CloseHotKey()//dll卸载时,取消热键 { UnregisterHotKey(NULL, gIHotF9); DeleteAtom(gIHotF9); } HWND getWindowHwndByPid(DWORD pid){//根据PID获取窗口句柄 HWND hwnd= GetTopWindow(0); DWORD windowpid=0; DWORD threadId=0; char title[200]; while(hwnd){ threadId=GetWindowThreadProcessId(hwnd,&windowpid); if (windowpid==pid) { ZeroMemory(title,200); GetWindowText(hwnd,title,200);//当进程有多个窗口,可以根据窗口标题判断哪个是需要注入的。 if(IsWindow(hwnd) && IsWindowVisible(hwnd)) { //游戏一般只有一个窗口,这里直接返回搜到的第一个窗口句柄 return hwnd; } } hwnd = GetNextWindow(hwnd,GW_HWNDNEXT); } return 0; } DWORD WINAPI ThreadProc(LPCVOID lparam) { HWND mainHwnd=getWindowHwndByPid(GetCurrentProcessId());//获取游戏窗口句柄,用于设置热键 pdlg = new mxd; pdlg->Create(IDD_MXD);//创建Dll中的窗体 pdlg->ShowWindow(SW_SHOW);//显示出来 showFlag=TRUE; MSG msg; SetHotKey(); while(::GetMessage(&msg, NULL, NULL, NULL)){ if ( (WM_HOTKEY == msg.message) && ( GetForegroundWindow() == mainHwnd || showFlag == TRUE )) {//当游戏窗体置顶,或者dll窗口被显示出来,才处理热键消息 UINT modId; UINT keyId; modId = LOWORD(msg.lParam); keyId = HIWORD(msg.lParam); //当按下Home键,并且dll窗体为隐藏 if (keyId == VK_F9 && !showFlag) { if (pdlg != NULL) { if (showFlag = FALSE) { showFlag = TRUE; ::SetWindowPos(pdlg->GetSafeHwnd(), HWND_TOPMOST, 0, 0, 0, 0, 3); pdlg->ShowWindow(SW_SHOW); } else { showFlag = FALSE; pdlg->ShowWindow(SW_HIDE); } } } } TranslateMessage(&msg); DispatchMessage(&msg); } return 0; } BOOL APIENTRY DllMain( HINSTANCE hModule, DWORD ul_reason_for_call, LPVOID lpReserved ) { switch (ul_reason_for_call) { case DLL_PROCESS_ATTACH: ::CreateThread(0,0,(LPTHREAD_START_ROUTINE)ThreadProc,0,0,0); case DLL_THREAD_ATTACH: case DLL_THREAD_DETACH: case DLL_PROCESS_DETACH: break; } return TRUE; } |
|
[求助]流氓无处不在!登陆BBS.PEDIY.COM 我看到了联通的全屏广告!
网络提供商这种很恶心,访问任何站点都可能返回广告或者提示 |
|
[招聘]腾讯游戏高薪诚招游戏安全测试工程师
支持anson! |
|
|
|
欢迎 莫灰灰 任『安全编程论坛』 实习版主
支持支持,恭喜 恭喜~ |
操作理由
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 }}
勋章
兑换勋章
证书
证书查询 >
能力值