📄 vltk_secured_logindlg.cpp
字号:
#include "stdafx.h"
#include "VLTK_Secured_Login.h"
#include "VLTK_Secured_LoginDlg.h"
#include "Psapi.h"
#include "shlwapi.h"
#include "../Hook/HookInj.h"
#define ServerNameOffset 0x00631304
#define PlayerNameAddr 0x00631388
#define MapOffset 0x00869204
#define Expire_Time_Addr 0x00630F80
#define Expire_Date_Addr 0x00630F7C
#define Game_Connection_State 0x00630C10
#define CharList_Char1 0x00630C1C
#define CharList_Char2 0x00630C40
#define CharList_Char3 0x00630C64
#define Game_Text_Offset 0x00630C64
#define Char_X_Offset 0x00836D70
#define Char_Y_Offset 0x00836D74
#define KPlayer_Base_Addr 0x00836D44
#define KPlayer_Size 0x0000B304
#define KPlayer_Sit_Addr 0xB300
#define KPlayer_Money1 0x00004D9C
#define KPlayer_Money2 0x00004DB8
#define Player_Index_Offset 0x0000B3B4
#define KPlayer_Sell_Addr 0x11404
#define NPC_Base_Addr 0x00E23300
#define NPC_Size 0x000082F8
#define NPC_RideHorseOffset 0x00001760
#define NPC_Trade_State 0x000024C4
#define NPC_Name 0x000012C5
#define Item_Base_Addr 0x00EFF230
#define Item_Size 0x00000538
#define Item_Index_Offset 0x0000B3F8
char user[100];
char pass[100];
CHAR AutoPath[255];
const UINT WM_TASKBARCREATED = RegisterWindowMessage(_T("TaskbarCreated"));
const UINT WM_ADVERSTING = RegisterWindowMessage(("Adversting"));
const UINT WM_ADVERST_TYPE = RegisterWindowMessage(("AdverstingType"));
const UINT WM_AUTOREPLY = RegisterWindowMessage("AutoReply");
const UINT WM_SELL = RegisterWindowMessage(_T("Sell"));
const UINT WM_WORLDTIME = RegisterWindowMessage(_T("WorldTime"));
const UINT WM_CITYTIME = RegisterWindowMessage(_T("CityTime"));
const UINT WM_GETCHAT = RegisterWindowMessage("GetChat");
const UINT WM_PARENT = RegisterWindowMessage("ParentHWND");
#define WM_TRAY_MESSAGE (WM_USER + 1)
#define WM_GETCHAT1 (WM_USER + 2)
#ifdef _DEBUG
#define new DEBUG_NEW
#endif
struct S_CharList1 {
char CharName[33];
char Password[33];
char Adversting[201];
char AutoReply[201];
bool World;
bool City;
int WorldTime;
int CityTime;
bool AutoSell;
HWND hwnd;
char PID[33];
bool GetChat;
CString ChatContent;
};
struct S_CharList {
S_CharList1 C[100];
};
S_CharList TheList;
LPRECT wrect = new tagRECT;
CString VNGame;
CString LoiRao;
CString TraLoi;
CString WorldTime;
CString CityTime;
char SelectedPID[33];
bool ListBoxEvent = false;
bool HideWindow = false;
HWND m_hVLWin;
HANDLE m_hProcess;
bool Found;
CListCtrl CharList;
int Hex2Bin(char* source,unsigned char* dest) {
size_t j = (strlen(source)/2);
memcpy(dest,source,j*2);
for (unsigned int i=0;i<j;i++) {
if ((unsigned int)dest[i*2] > 90) {
dest[i*2] = (unsigned int)dest[i*2] - 87;
} else if ((unsigned int)dest[i*2] > 57) {
dest[i*2] = (unsigned int)dest[i*2] - 55;
} else {
dest[i*2] = (unsigned int)dest[i*2] - 48;
}
if ((unsigned int)dest[i*2+1] > 90) {
dest[i*2+1] = (unsigned int)dest[i*2+1] - 87;
} else if ((unsigned int)dest[i*2+1] > 57) {
dest[i*2+1] = (unsigned int)dest[i*2+1] - 55;
} else {
dest[i*2+1] = (unsigned int)dest[i*2+1] - 48;
}
dest[i] = (unsigned int)dest[i*2]*16+(unsigned int)dest[i*2+1];
}
dest[j] = 0;
return j;
}
bool IsBadWord(char * strData) {
bool IsBad = false;
int l = 1;
char strData1[201];
memcpy(strData1,strData,200);
char StrToCheck[201];
memset (StrToCheck,0,200);
StrToCheck[0]='z';
char old = 32;
for (int i = 0;i<=200;i++) {
if ((strData1[i] >= 'A') && (strData1[i] <= 'Z')) {
strData1[i] = strData1[i]+32;
}
}
if (strstr(strData1,"ch
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -