Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <Windows.h>
- #include "main.h"
- #include <iostream>
- void main()
- {
- AllocConsole();
- freopen("CONOUT$", "w", stdout);
- std::cout << "Press enter?";
- while (true) {
- if (GetAsyncKeyState(0x0D))
- Trainer(); Sleep(50);
- }
- }
- BOOL WINAPI DllMain(HINSTANCE hinstDll, DWORD Reason, LPVOID Reserved) {
- switch (Reason) {
- case DLL_PROCESS_ATTACH:
- MessageBox(0, "DllInject", "Injected", 0);
- CreateThread(0, 0, (LPTHREAD_START_ROUTINE)main, NULL, 0, NULL);
- break;
- case DLL_PROCESS_DETACH:
- break;
- }
- return TRUE;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement