rev 1.7.4h - updated pipx installer for fix_cme

This commit is contained in:
Dewalt 2023-08-09 06:21:28 -05:00
parent 98d017de52
commit fad9e3ddb6
2 changed files with 10 additions and 4 deletions

View File

@ -39,6 +39,9 @@
# Writeups / Honorable Mentions
- ip3c4c_n00b https://ip3c4c.com/2202_homelab_vmware/
# Revision 1.7.4h - updated pipx installer for fix_cme
- updated function to install pipx from apt
# Revision 1.7.4g - updated path statement for fix_cme
- corrected path statement for fix_cme user function

View File

@ -398,8 +398,10 @@ fix_cme() {
if [[ $findrealuser == "root" ]];
then
echo -e "\n Starting $findrealuser user installation"
# pipx installer
python3 -m pip install pipx --user
# pipx installer changed as of revision 1.7.4h
eval apt -y install pipx python3-venv
# python3 -m pip install pipx --user
git clone https://github.com/mpgn/CrackMapExec /opt/CrackMapExec
cd /opt/CrackMapExec
pipx install . --force
@ -420,8 +422,9 @@ fix_cme() {
if [[ $findrealuser != "root" ]];
then
echo -e "\n Starting $findrealuser user installation\n"
# pipx installer
sudo -i -u $findrealuser sh -c 'python3 -m pip install pipx --user'
# pipx installer changed as of revision 1.7.4h
# sudo -i -u $findrealuser sh -c 'python3 -m pip install pipx --user'
eval apt -y install pipx python3-venv
[ -d /opt/CrackMapExec ] && rm -rf /opt/CrackMapExec
git clone https://github.com/mpgn/CrackMapExec /opt/CrackMapExec