Fix backdoor
All sources are affected
Here is the old original fix that uses existing RunLine for PyObject
The downladable resource uses Py_CompileString & PyEval_EvalCode inside RunMemoryTextFile, without the need of RunLine
All sources are affected
Here is the old original fix that uses existing RunLine for PyObject
The downladable resource uses Py_CompileString & PyEval_EvalCode inside RunMemoryTextFile, without the need of RunLine
C++:
bool CPythonLauncher::RunMemoryTextFile(const char* c_szFileName, UINT uFileSize, const VOID* c_pvFileData)
{
const CHAR* c_pcFileData = (const CHAR*)c_pvFileData;
std::string stConvFileData;
stConvFileData.reserve(uFileSize);
for (UINT i = 0; i < uFileSize; ++i)
{
if (c_pcFileData[i] != 13)
stConvFileData += c_pcFileData[i];
}
const CHAR* c_pcConvFileData = stConvFileData.c_str();
return RunLine(c_pcConvFileData);
}