Advertisement
Guest User

M2PythonLoader PERMANENTLY FIX BY FRANKIE COMMANDO [PUBLIC]

a guest
Aug 28th, 2015
780
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.87 KB | None | 0 0
  1. //DEVELOPED BY FRANKIE COMMANDO - COPYRIGHTS 2015-2016.
  2. //THIS DLL PROTECT PERMANENTLY FROM M2PythonLoader HACK.
  3. #include "stdafx.h"
  4. #include <windows.h>
  5. #include <detours.h>
  6. #include <python.h>
  7.  
  8. #pragma comment(lib, "detours.lib")
  9.  
  10. typedef int(__stdcall *PythonRun)(FILE *fp, const char *name);
  11. PythonRun PythonRunx;
  12.  
  13. int __stdcall PythonRunxx(FILE *fp, const char *name)
  14. {
  15.     MessageBoxA(NULL, "M2PythonLoader is Fixed by Frankie Commando.", "Sorry MusicDickInstructor", NULL);
  16.     return 0;
  17. }
  18.  
  19. void FixM2PythonLoaderByFrankieCommando()
  20. {
  21.     PythonRunx = (PythonRun)DetourFunction((PBYTE)GetProcAddress(GetModuleHandleA("python22.dll"), "PyRun_SimpleFile"), (PBYTE)&PythonRunxx);
  22. }
  23.  
  24. BOOL APIENTRY DllMain(HMODULE hModule, DWORD  ul_reason_for_call, LPVOID lpReserved)
  25. {
  26.     if (ul_reason_for_call == DLL_PROCESS_ATTACH) FixM2PythonLoaderByFrankieCommando();
  27.     return TRUE;
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement