Backtrack5更新Metasploit

curl https://raw.githubusercontent.com/rapid7/metasploit-omnibus/master/config/templates/metasploit-framework-wrappers/msfupdate.erb > msfinstall
chmod +x msfinstall
./msfinstall


注意:msfconsole命令不能启动最新版metasploit,cd /opt/metasploit-framework/bin/,里面有个可执行文件:msfconsole

VC++学习笔记 hotkey控件简单使用

	UnregisterHotKey(m_hWnd,100); //首先卸载热键以防冲突
	WORD virtualcode,modifiers;  
	m_hotkey.GetHotKey(virtualcode,modifiers); //获取键盘code
	if (!RegisterHotKey(this->m_hWnd,100,modifiers,virtualcode))
	{
		MessageBox(L"注册热键失败",L"错误:",MB_OK|MB_ICONERROR);
		return;
	}


m_hotkey是一个控件变量。