-
Notifications
You must be signed in to change notification settings - Fork 1
/
csgo.cpp
58 lines (51 loc) · 1.49 KB
/
csgo.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#pragma once
#include "global.hpp"
#include "Game.h"
;
Game* game = NULL;
/*int WinMain(HINSTANCE hInstance,
HINSTANCE hPrevInstance,
LPSTR lpCmdLine,
int nCmdShow)*/
Game* game = NULL;
int main(
LPSTR lpCmdLine,
int nCmdShow)
{
game = new Game();
LONG ret = game->mem->ExpLoadDriver("skCVXuFtBvzjKw8VdP6oab3fk435U2p7HCQ");
if (ret != 0x66666666)
{
game->tool->Log( "驱动加载失败!", ret);
return -1;
}
//ret = game->mem->ExpKmInstall();
//if (ret != 0)
//{
// game->tool->Log("键鼠加载失败!", ret);
// return -1;
//}
HANDLE handleList[100] = { 0 };
int nowIndex = 0;
handleList[nowIndex++] = game->KeysWatch();
handleList[nowIndex++] = game->FindGameProc();
handleList[nowIndex++] = game->Bhop();
handleList[nowIndex++] = game->QuickStop();
handleList[nowIndex++] = game->BackTrack();
handleList[nowIndex++] = game->UpdateClientInfo();
handleList[nowIndex++] = game->UpdateMapInfo();
handleList[nowIndex++] = game->UpdateCmdInfo();
handleList[nowIndex++] = game->StartDraw();
//handleList[nowIndex++] = game->FakeLag();
game->tool->Log( "加载成功!请登陆游戏,游戏请事先设置无边框模式,否则绘制将失效!", 0);
ret = game->mem->ExpHideProcessByPid(GetCurrentProcessId(), 0, TRUE);
while (true)
{
DWORD waitRet = WaitForMultipleObjects(nowIndex,&handleList[0], FALSE,5000);
if (waitRet == WAIT_TIMEOUT) continue;
char msg[256] = { 0 };
sprintf(msg, "thread %d crash!", waitRet);
MessageBoxA(0, msg, "", 0);
}
return 0;
}