NetExec icon indicating copy to clipboard operation
NetExec copied to clipboard

Testing for Python 3.12

Open NeffIsBack opened this issue 10 months ago • 4 comments

This issue should document changes that need to be done before we can "officially" support Python 3.12.

So far it looks like everything works just out of the box 🎉 Just some SyntaxWarnings from other packages: image image

NeffIsBack avatar Mar 27 '24 16:03 NeffIsBack

Somehow now aardwolf installation fails with poetry complaining about not having rust.

NeffIsBack avatar Apr 21 '24 19:04 NeffIsBack

Somehow now aardwolf installation fails with poetry complaining about not having rust.

  • https://github.com/skelsec/aardwolf/blob/ca024706c46265f910c572de194bf32c2805f1c6/pyproject.toml#L2
  • https://github.com/skelsec/aardwolf/blob/ca024706c46265f910c572de194bf32c2805f1c6/setup.py#L43

aardwolf relies on setuptools-rust. When using distro package manager like pacman on ArchLinux, the PKGBUILD of python-setuptools-rust depends on rust, so everything is fine. But on poetry / pip / whateverpythonpackagemanager, it is only able to install python dependencies, not system dependencies. That's why having distro packages is important.

noraj avatar Aug 07 '24 22:08 noraj

On BlackArch, we use a virtualenv poetry packaging for netexec instead of using ArchLinux python system packages because there are too much dependencies, for Netexec, updating too often and more importantly sometimes not using the last version for months while breaking changes are introduced in the dependency.

Right now ArchLinux uses python 3.12.4, so to make NetExec work via a poetry install, I had to install system dependencies (rust) in depends in the PKGBUILD as poetry can't install them cf. https://github.com/BlackArch/blackarch/pull/4186/files.

noraj avatar Aug 07 '24 22:08 noraj

Okay makes sense! Weird stuff, i could have sworn the last time i tested it on a fresh kali installation it worked. Maybe it is preinstalled nowadays or some dependency installed it

NeffIsBack avatar Aug 09 '24 22:08 NeffIsBack

Python 3.12 is working flawlessly, so closing this one

NeffIsBack avatar Oct 12 '24 14:10 NeffIsBack