TheWover / donut

Generates x86, x64, or AMD64+x86 position-independent shellcode that loads .NET Assemblies, PE files, and other Windows payloads from memory and runs them with parameters
BSD 3-Clause "New" or "Revised" License
3.53k stars 628 forks source link

Install fails #91

Closed devilbager closed 3 years ago

devilbager commented 3 years ago

`ERROR: Command errored out with exit status 1: command: 'C:\Users\PBAHO\miniconda3\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\PBAHO\AppData\Local\Temp\pip-req-build-ze6ed2v6\setup.py'"'"'; file='"'"'C:\Users\PBAHO\AppData\Local\Temp\pip-req-build-ze6ed2v6\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' bdist_wheel -d 'C:\Users\PBAHO\AppData\Local\Temp\pip-wheel-d6d1v0tp' cwd: C:\Users\PBAHO\AppData\Local\Temp\pip-req-build-ze6ed2v6\ Complete output (12 lines): running bdist_wheel running build running build_ext building 'donut' extension creating build creating build\temp.win-amd64-3.9 creating build\temp.win-amd64-3.9\Release creating build\temp.win-amd64-3.9\Release\loader C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29910\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Iinclude -IC:\Users\PBAHO\miniconda3\include -IC:\Users\PBAHO\miniconda3\include -IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29910\ATLMFC\include -IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29910\include -IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.20348.0\ucrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\shared -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\winrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\cppwinrt /Tcdonut.c /Fobuild\temp.win-amd64-3.9\Release\donut.obj donut.c include\donut.h(41): fatal error C1083: Cannot open include file: 'stdio.h': No such file or directory error: command 'C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29910\bin\HostX86\x64\cl.exe' failed with exit code 2

ERROR: Failed building wheel for donut-shellcode Running setup.py clean for donut-shellcode Failed to build donut-shellcode Installing collected packages: donut-shellcode Running setup.py install for donut-shellcode ... error ERROR: Command errored out with exit status 1: command: 'C:\Users\PBAHO\miniconda3\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\PBAHO\AppData\Local\Temp\pip-req-build-ze6ed2v6\setup.py'"'"'; file='"'"'C:\Users\PBAHO\AppData\Local\Temp\pip-req-build-ze6ed2v6\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record 'C:\Users\PBAHO\AppData\Local\Temp\pip-record-9ug9ynwe\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\Users\PBAHO\miniconda3\Include\donut-shellcode' cwd: C:\Users\PBAHO\AppData\Local\Temp\pip-req-build-ze6ed2v6\ Complete output (12 lines): running install running build running build_ext building 'donut' extension creating build creating build\temp.win-amd64-3.9 creating build\temp.win-amd64-3.9\Release creating build\temp.win-amd64-3.9\Release\loader C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29910\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Iinclude -IC:\Users\PBAHO\miniconda3\include -IC:\Users\PBAHO\miniconda3\include -IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29910\ATLMFC\include -IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29910\include -IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.20348.0\ucrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\shared -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\winrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\cppwinrt /Tcdonut.c /Fobuild\temp.win-amd64-3.9\Release\donut.obj donut.c include\donut.h(41): fatal error C1083: Cannot open include file: 'stdio.h': No such file or directory error: command 'C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29910\bin\HostX86\x64\cl.exe' failed with exit code 2

ERROR: Command errored out with exit status 1: 'C:\Users\PBAHO\miniconda3\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\PBAHO\AppData\Local\Temp\pip-req-build-ze6ed2v6\setup.py'"'"'; file='"'"'C:\Users\PBAHO\AppData\Local\Temp\pip-req-build-ze6ed2v6\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record 'C:\Users\PBAHO\AppData\Local\Temp\pip-record-9ug9ynwe\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\Users\PBAHO\miniconda3\Include\donut-shellcode' Check the logs for full command output.`

TheWover commented 3 years ago

Probably an issue with your compiler setup. I also have never used miniconda with donut, so that may not have everything required for the Python module. Either way, your error is due to a dependency issue with your installation environment rather than donut itself, so this issue will be closed.