_rust.abi3.so: Cannot open shared object file
Reelix opened this issue · 0 comments
Reelix commented
Describe the bug
Attempting to run the latest version of cme returns the following error:
./cme
Traceback (most recent call last):
File "<frozen runpy>", line 198, in _run_module_as_main
File "<frozen runpy>", line 88, in _run_code
File "/home/reelix/./cme/__main__.py", line 3, in <module>
File "/home/reelix/./cme/_bootstrap/__init__.py", line 253, in bootstrap
File "/home/reelix/./cme/_bootstrap/__init__.py", line 38, in run
File "/home/reelix/.shiv/cme_59c6884eef7b418e3dae8f19230cc9fed303ff78a2ab9f7ff25dafb624ae37bc/site-packages/cme/crackmapexec.py", line 117, in main
args = gen_cli_args()
^^^^^^^^^^^^^^
File "/home/reelix/.shiv/cme_59c6884eef7b418e3dae8f19230cc9fed303ff78a2ab9f7ff25dafb624ae37bc/site-packages/cme/cli.py", line 76, in gen_cli_args
protocol_object = p_loader.load_protocol(protocols[protocol]['path'])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/reelix/.shiv/cme_59c6884eef7b418e3dae8f19230cc9fed303ff78a2ab9f7ff25dafb624ae37bc/site-packages/cme/loaders/protocol_loader.py", line 15, in load_protocol
protocol = imp.load_source('protocol', protocol_path)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/imp.py", line 170, in load_source
module = _exec(spec, sys.modules[name])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<frozen importlib._bootstrap>", line 621, in _exec
File "<frozen importlib._bootstrap_external>", line 940, in exec_module
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "/home/reelix/.shiv/cme_59c6884eef7b418e3dae8f19230cc9fed303ff78a2ab9f7ff25dafb624ae37bc/site-packages/cme/protocols/ssh.py", line 4, in <module>
import paramiko
File "/home/reelix/.shiv/cme_59c6884eef7b418e3dae8f19230cc9fed303ff78a2ab9f7ff25dafb624ae37bc/site-packages/paramiko/__init__.py", line 22, in <module>
from paramiko.transport import SecurityOptions, Transport
File "/home/reelix/.shiv/cme_59c6884eef7b418e3dae8f19230cc9fed303ff78a2ab9f7ff25dafb624ae37bc/site-packages/paramiko/transport.py", line 91, in <module>
from paramiko.dsskey import DSSKey
File "/home/reelix/.shiv/cme_59c6884eef7b418e3dae8f19230cc9fed303ff78a2ab9f7ff25dafb624ae37bc/site-packages/paramiko/dsskey.py", line 25, in <module>
from cryptography.hazmat.primitives import hashes, serialization
File "/home/reelix/.shiv/cme_59c6884eef7b418e3dae8f19230cc9fed303ff78a2ab9f7ff25dafb624ae37bc/site-packages/cryptography/hazmat/primitives/serialization/__init__.py", line 16, in <module>
from cryptography.hazmat.primitives.serialization.base import (
File "/home/reelix/.shiv/cme_59c6884eef7b418e3dae8f19230cc9fed303ff78a2ab9f7ff25dafb624ae37bc/site-packages/cryptography/hazmat/primitives/serialization/base.py", line 9, in <module>
from cryptography.hazmat.primitives.asymmetric.types import (
File "/home/reelix/.shiv/cme_59c6884eef7b418e3dae8f19230cc9fed303ff78a2ab9f7ff25dafb624ae37bc/site-packages/cryptography/hazmat/primitives/asymmetric/types.py", line 7, in <module>
from cryptography.hazmat.primitives.asymmetric import (
File "/home/reelix/.shiv/cme_59c6884eef7b418e3dae8f19230cc9fed303ff78a2ab9f7ff25dafb624ae37bc/site-packages/cryptography/hazmat/primitives/asymmetric/dsa.py", line 10, in <module>
from cryptography.hazmat.primitives.asymmetric import (
File "/home/reelix/.shiv/cme_59c6884eef7b418e3dae8f19230cc9fed303ff78a2ab9f7ff25dafb624ae37bc/site-packages/cryptography/hazmat/primitives/asymmetric/utils.py", line 6, in <module>
from cryptography.hazmat.bindings._rust import asn1
ImportError: /home/reelix/.shiv/cme_59c6884eef7b418e3dae8f19230cc9fed303ff78a2ab9f7ff25dafb624ae37bc/site-packages/cryptography/hazmat/bindings/_rust.abi3.so: cannot open shared object file: No such file or directory
To Reproduce
Steps to reproduce the behavior:
- Download and extract cme-ubuntu-latest-3.11.zip
- Attempt to run it
- See error
Expected behavior
The prompt appears showing the application flags
Crackmapexec info
- OS: Ubuntu 23.04 ARM64
- Python Version: 3.11.2
- Version of CME: 5.4.0
- Installed from apt or using latest release: Latest release
Additional context
Unable to install using other methods due to various unrelated issues:
- pipx has a JSONDecodeError error
- poetry
pycparser
requires a device with a display for some reason (Dbus Error) - Docker container is not compatible with an ARM-based system