Jump to content

M2PythonLoader Fix


Recommended Posts

  • Active Member
#include <Windows.h>

void Starter(){
	DWORD pRet[] = { 0x31, 0xC0, 0xC3 };
	WriteProcessMemory(GetCurrentProcess(), (LPVOID)(VOID*)GetProcAddress(GetModuleHandleA((LPCSTR)"python22.dll"), "PyRun_SimpleFile"), (LPVOID)pRet, sizeof(pRet), 0);
}

BOOL APIENTRY DllMain(HMODULE hModule, DWORD ul_reason_for_call, LPVOID lpReserved) {
	if(ul_reason_for_call == 1)
		Starter();
	return TRUE;
}

 

Detours always isn't required

  • Love 1
Link to comment
Share on other sites

  • 9 months later...
  • 2 years later...
  • 4 months later...

Announcements



×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.