Advertisement
Guest User

Untitled

a guest
Jul 24th, 2016
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. #include <Windows.h>
  2. #include "main.h"
  3. #include <iostream>
  4.  
  5. void main()
  6. {
  7. AllocConsole();
  8. freopen("CONOUT$", "w", stdout);
  9. std::cout << "Press enter?";
  10. while (true) {
  11. if (GetAsyncKeyState(0x0D))
  12. Trainer(); Sleep(50);
  13. }
  14. }
  15.  
  16. BOOL WINAPI DllMain(HINSTANCE hinstDll, DWORD Reason, LPVOID Reserved) {
  17. switch (Reason) {
  18.  
  19. case DLL_PROCESS_ATTACH:
  20. MessageBox(0, "DllInject", "Injected", 0);
  21. CreateThread(0, 0, (LPTHREAD_START_ROUTINE)main, NULL, 0, NULL);
  22. break;
  23.  
  24. case DLL_PROCESS_DETACH:
  25. break;
  26.  
  27. }
  28. return TRUE;
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement