Closed jsf9k closed 4 weeks ago
Note that the change in this PR also fixes, e.g., RedSiege/EXCELntDonut which has donut-shellcode
as a dependency. This tool cannot currently be installed on Kali Linux as seen here.
Any hope of getting some movement on this one-line change without which the donut
Python extension does not build? What can I do to help?
Getting the same error on PowerShell Empire that uses donut as dependency. @TheWover can you please give a look to this PR?
It affects Python 3.12.
@TheWover thank you for merging it. Could you please create a new release of it on GitHub and PyPI (https://pypi.org/project/donut-shellcode/)?
When rebuilding an AMI using the latest Kali base AMI, I found that the
donut
Python extension failed to build with the following output:Digging into the code, I found the reason to be that the
ml_meth
member of thePyMethodDef
struct must be of typePyCFunction
, even if it is secretly of typePyCFunctionWithKeywords
,PyCMethod
, etc. This is why the cast I added is necessary;gcc
errors out without it - at least with the 14.2.0 version ofgcc
that is currently offered on Kali.I confirmed that adding the cast made the Python extension build again.