From 912b11228cdb293905c422f2148af9e44595922f Mon Sep 17 00:00:00 2001 From: QU35T Date: Wed, 8 Mar 2023 14:24:30 +0100 Subject: [PATCH 1/2] Fix cme install sourcing zshrc --- sources/install.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sources/install.sh b/sources/install.sh index 4dc6f6d2c..f3ee1019d 100644 --- a/sources/install.sh +++ b/sources/install.sh @@ -427,6 +427,8 @@ function install_bolt() { function install_crackmapexec() { colorecho "Installing CrackMapExec" + # Source bc cme needs cargo PATH (rustc) -> aardwolf dep + source /root/.zshrc git -C /opt/tools/ clone https://github.com/Porchetta-Industries/CrackMapExec.git python3 -m pipx install /opt/tools/CrackMapExec/ mkdir -p ~/.cme From a070e41b2e5b1070e6fe91302e69da5e81c8912b Mon Sep 17 00:00:00 2001 From: QU35T Date: Wed, 8 Mar 2023 14:37:01 +0100 Subject: [PATCH 2/2] Add TODO comment --- sources/install.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/sources/install.sh b/sources/install.sh index f3ee1019d..59b895f27 100644 --- a/sources/install.sh +++ b/sources/install.sh @@ -428,6 +428,7 @@ function install_bolt() { function install_crackmapexec() { colorecho "Installing CrackMapExec" # Source bc cme needs cargo PATH (rustc) -> aardwolf dep + # TODO: Optimize so that the PATH is always up to date source /root/.zshrc git -C /opt/tools/ clone https://github.com/Porchetta-Industries/CrackMapExec.git python3 -m pipx install /opt/tools/CrackMapExec/