Advertisement
Guest User

Untitled

a guest
Jul 28th, 2017
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.30 KB | None | 0 0
  1. // firstshacks.cpp : Defines the exported functions for the DLL application.
  2. //
  3.  
  4. #include "stdafx.h"
  5. #include <windows.h>
  6. #include <stdio.h>
  7. #include <iostream>
  8. #include <windows.h>
  9.  
  10. bool IsGameReadyForHook()
  11.  
  12. {
  13. if( GetModuleHandleA( "ClientFX.fxd" ) != NULL
  14. && GetModuleHandleA( "CShell.dll" ) != NULL )
  15.  
  16. return true;
  17. return false;
  18. }
  19.  
  20. void main()
  21. {
  22. while (!IsGameReadyForHook()){
  23. Sleep(20);
  24. }
  25.  
  26. bool super = false;
  27. bool glass = false;
  28.  
  29. while(true){
  30.  
  31. if (GetAsyncKeyState(VK_NUMPAD1)<0)
  32. super=!super;
  33.  
  34. if (super){
  35.  
  36. Sleep(200);
  37.  
  38. memcpy((LPVOID)0x374B44F6, "\x0F\x94\xC0", 3);
  39.  
  40.  
  41.  
  42. }else{
  43.  
  44. Sleep(200);
  45.  
  46. memcpy((LPVOID)0x374B44F6, "\x90\x90\x90", 3);
  47.  
  48.  
  49.  
  50. }
  51.  
  52.  
  53.  
  54.  
  55.  
  56. if(GetAsyncKeyState(VK_NUMPAD2)<0)
  57. glass=!glass;
  58. if (glass){
  59.  
  60. Sleep(200);
  61.  
  62. memcpy((LPVOID)0x57275A, "\x6A\x01", 2);
  63.  
  64.  
  65.  
  66. }else{
  67.  
  68. Sleep(200);
  69.  
  70. memcpy((LPVOID)0x57275A, "\x6A\x00", 2);
  71.  
  72.  
  73.  
  74. }
  75.  
  76. }
  77. }
  78.  
  79. BOOL APIENTRY DllMain( HMODULE hModule,
  80. DWORD ul_reason_for_call,
  81. LPVOID lpReserved
  82. )
  83. {
  84. switch (ul_reason_for_call)
  85. {
  86. case DLL_PROCESS_ATTACH:
  87. CreateThread(NULL, 0, (LPTHREAD_START_ROUTINE)&main, NULL, 0,NULL);
  88. break;
  89. case DLL_THREAD_ATTACH:
  90. case DLL_THREAD_DETACH:
  91. case DLL_PROCESS_DETACH:
  92. break;
  93. }
  94. return TRUE;
  95. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement