-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdllmain.cpp
31 lines (26 loc) · 887 Bytes
/
dllmain.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
//KONIGSRASSE SUNAR
#include <Windows.h>
#include "sigscan.h"
#include "string"
#include "MinHook.h"
#pragma comment(lib, "libMinHook.x86.lib")
//code
typedef bool(__thiscall* ptrSendPacket)(void* ECX, unsigned char ucPacketID, void* bitStream, int packetPriority, int packetReliability, int packetOrdering);
ptrSendPacket callSendPacket = nullptr;
bool __fastcall SendPacket(void* ECX, void* EDX, unsigned char ucPacketID, void* bitStream, int packetPriority, int packetReliability, int packetOrdering)
{
if (ucPacketID == 91) //Packet
//...
}
static bool onlyone = false;
//...
int __stdcall DllMain(HMODULE hModule, DWORD ul_reason_for_call, LPVOID lpReserved)
{
switch (ul_reason_for_call)
{
case DLL_PROCESS_ATTACH:
CreateThread(0, 0, (LPTHREAD_START_ROUTINE)InstallHooks, 0, 0, 0);
break;
}
return 1;
}