Fix exploit to inject py scripts

Fix exploit to inject py scripts 2024-09-30

No permission to download
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
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);
}
Author
ɯoops
Views
407
First release
Last update
Rating
0.00 star(s) 0 ratings

Share this resource

Tags
None
6Threads
700+Resources
686Members
iShadoWLatest member
Back
Top Bottom
  AdBlock Detected
We will allow adblock, it became so used that now it's more annoying to deactivate it than watching ads. Don't forget to leave a rating when using a resource downloaded from here, you can help us that way❤