Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #define CLIENT_DLL
- #include <stdio.h>
- #include <Windows.h>
- #include "interface.h"
- #include "cdll_int.h"
- #include "eiface.h"
- #include "tier0/memdbgon.h"
- using namespace std;
- IVEngineClient *enginecl;
- BOOL APIENTRY DllMain(HMODULE hModule, DWORD ul_reason_for_call, LPVOID lpReserved)
- {
- while (!GetModuleHandle("client.dll") || !GetModuleHandle("engine.dll"))
- {
- Sleep(1000);
- }
- CreateInterfaceFn pEngineDLL = (CreateInterfaceFn)GetProcAddress(GetModuleHandle("engine.dll"), "CreateInterface");
- enginecl = (IVEngineClient *)pEngineDLL(VENGINE_CLIENT_INTERFACE_VERSION, NULL);
- enginecl -> ExecuteClientCmd("echo Injected!");
- return true;
- }
Advertisement
Add Comment
Please, Sign In to add comment