Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //DEVELOPED BY FRANKIE COMMANDO - COPYRIGHTS 2015-2016.
- //THIS DLL PROTECT PERMANENTLY FROM M2PythonLoader HACK.
- #include "stdafx.h"
- #include <windows.h>
- #include <detours.h>
- #include <python.h>
- #pragma comment(lib, "detours.lib")
- typedef int(__stdcall *PythonRun)(FILE *fp, const char *name);
- PythonRun PythonRunx;
- int __stdcall PythonRunxx(FILE *fp, const char *name)
- {
- MessageBoxA(NULL, "M2PythonLoader is Fixed by Frankie Commando.", "Sorry MusicDickInstructor", NULL);
- return 0;
- }
- void FixM2PythonLoaderByFrankieCommando()
- {
- PythonRunx = (PythonRun)DetourFunction((PBYTE)GetProcAddress(GetModuleHandleA("python22.dll"), "PyRun_SimpleFile"), (PBYTE)&PythonRunxx);
- }
- BOOL APIENTRY DllMain(HMODULE hModule, DWORD ul_reason_for_call, LPVOID lpReserved)
- {
- if (ul_reason_for_call == DLL_PROCESS_ATTACH) FixM2PythonLoaderByFrankieCommando();
- return TRUE;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement