-
-
Notifications
You must be signed in to change notification settings - Fork 67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update CrackMapExec to use latest version from the repo #112
Conversation
Thank you for this pull request! |
Hey @mpgn, Thanks for this PR ! When installing The |
Hello @mpgn Thank you for the PR! Maybe if cme use a source install of Might be something to try |
I think it only fail for [Mar 02, 2023 - 09:21:22 (UTC)] exegol-test-2 aardwolf-0.2.6 # python3 -m pipx install git+https://github.com/Porchetta-Industries/CrackMapExec
Fatal error from pip prevented installation. Full pip output in file:
/root/.local/pipx/logs/cmd_2023-03-02_09.21.28_pip_errors.log
pip failed to build package:
aardwolf
Some possibly relevant errors from pip install:
error: subprocess-exited-with-error
error: can't find Rust extension project file: aardwolf/utils/rlers/Cargo.toml
Error installing crackmapexec from spec 'git+https://github.com/Porchetta-Industries/CrackMapExec'. Or : [Mar 02, 2023 - 09:22:06 (UTC)] exegol-test-2 aardwolf-0.2.6 # python3 -m pip download --no-binary aardwolf aardwolf
Collecting aardwolf
[...TRUNCATED DATA...] [Mar 02, 2023 - 09:23:07 (UTC)] exegol-test-2 aardwolf-0.2.6 # python3 -m pip install aardwolf-0.2.6.tar.gz
[...TRUNCATED DATA...]
error: can't find Rust extension project file: aardwolf/utils/rlers/Cargo.toml
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for aardwolf
Failed to build aardwolf
ERROR: Could not build wheels for aardwolf, which is required to install pyproject.toml-based projects The archive on pip isn't complete (https://pypi.org/project/aardwolf/#files): |
Strange things, I request aardwold 0.2.5 but the script request 0.2.6 https://github.com/Porchetta-Industries/CrackMapExec/blob/master/requirements.txt#L1 Or maybe I didn't understand your output, anyway maybe we can check if the ARCH is ARM and run |
As you are on In the Collecting aardwolf==0.2.5
Using cached aardwolf-0.2.5.tar.gz (926 kB) |
There is exactly the same problem with the 0.2.5 and 0.2.6 archive. |
And the command |
Nop, because this command will download the archive .tar.gz |
too bad, well who use mac anyway aha |
in any case this is interesting, didn't know about build failing for Mac :) |
It's more of an ARM64 issue, meaning M1/M2 mac are affected but ARM64 raspberry pies as well |
Hey @mpgn and everyone, Skelsec has released a new version which solved the problem : skelsec/aardwolf#13 ! Doing tests and changing the version of aardwolf in the Despite this, I found a way to perform the installation for ARM : # Download the cme repo
git -C /opt/tools clone https://github.com/Porchetta-Industries/CrackMapExec
cd /opt/tools/CrackMapExec || exit
# Remove aardwolf from requirements files
sed -i '/aardwolf/d' requirements.txt pyproject.toml
# Create python venv
python3 -m venv ./venv
# Download aardwolf-0.2.7.tar.gz from pypi
mkdir deps
cd deps
python3 -m pip download --no-binary aardwold aardwolf
cd ../
# Install aardwolf dep
./venv/bin/python3 -m pip install deps/aardwolf*.tar.gz
# Install all the requirements
./venv/bin/python3 -m pip install . For the alias cme='/opt/tools/CrackMapExec/venv/bin/python3 /opt/tools/CrackMapExec/cme/crackmapexec.py' I think we can make a separation for the AMD and ARM case and use |
Don't you think it's better if I bump aardwolf inside cme to 0.2.7 directly ? |
It will be easier, for sure. |
If you update to the latest version, we can do |
Ok i will do then |
We are working with some what appears to be some regression with Skelsec :) |
Should be good, check commit byt3bl33d3r/CrackMapExec@d2ea13f I also advise you strongly to use latest version of pypykatz inside exegol if this is not the case :) |
Thanks @mpgn and Skelsec, that's a good work ! |
During the next image build, pypykatz will be updated to the latest version (0.6.6). |
The failed |
Description
Update CrackMapExec to use git clone instead for pypi since the package cannot be updated due to the fact cme is using latest commit of impacket not present on the pypi version of impacket
Related issues
The version actually used is very old, 5.2.2 vs 5.4.1
Point of attention
💘