Revision 1.7.9
This commit is contained in:
parent
489fed21b2
commit
e1b9ee2296
|
|
@ -45,6 +45,10 @@ sudo ./pimpmykali.sh
|
||||||
# Writeups / Honorable Mentions
|
# Writeups / Honorable Mentions
|
||||||
- ip3c4c_n00b https://ip3c4c.com/2202_homelab_vmware/
|
- ip3c4c_n00b https://ip3c4c.com/2202_homelab_vmware/
|
||||||
|
|
||||||
|
# Revision 1.7.9 - crackmapexec
|
||||||
|
- corrected pathing of symlinks created in $HOME/.local/bin
|
||||||
|
- place holder in script for NetExec (nxc) installation in next revision
|
||||||
|
|
||||||
# Revision 1.7.8 - Pimpmykali-Mirrors
|
# Revision 1.7.8 - Pimpmykali-Mirrors
|
||||||
- correction/update to current url for mirrorlist
|
- correction/update to current url for mirrorlist
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@
|
||||||
# Standard Disclaimer: Author assumes no liability for any damage
|
# Standard Disclaimer: Author assumes no liability for any damage
|
||||||
|
|
||||||
# revision var
|
# revision var
|
||||||
revision="1.7.8"
|
revision="1.7.9"
|
||||||
|
|
||||||
# unicorn puke:
|
# unicorn puke:
|
||||||
red=$'\e[1;31m'
|
red=$'\e[1;31m'
|
||||||
|
|
@ -356,7 +356,7 @@ fix_cme_symlinks() {
|
||||||
findrealuser=$(logname)
|
findrealuser=$(logname)
|
||||||
getshell=$(echo $SHELL | cut -d "/" -f4)
|
getshell=$(echo $SHELL | cut -d "/" -f4)
|
||||||
|
|
||||||
cmebin_path="$HOME/.local/pipx/venvs/crackmapexec/bin/"
|
cmebin_path="$HOME/.local/share/pipx/venvs/crackmapexec/bin/"
|
||||||
localbin_path="$HOME/.local/bin/"
|
localbin_path="$HOME/.local/bin/"
|
||||||
|
|
||||||
cme_symlink_array=( 'addcomputer.py' 'antdsparse' 'apython' 'ardpscan' 'asmbcertreq' 'asmbclient' 'asmbgetfile' 'asmbscanner' 'asmbshareenum'
|
cme_symlink_array=( 'addcomputer.py' 'antdsparse' 'apython' 'ardpscan' 'asmbcertreq' 'asmbclient' 'asmbgetfile' 'asmbscanner' 'asmbshareenum'
|
||||||
|
|
@ -373,14 +373,21 @@ fix_cme_symlinks() {
|
||||||
for cme_symlink_array_file in ${cme_symlink_array[@]}; do
|
for cme_symlink_array_file in ${cme_symlink_array[@]}; do
|
||||||
echo $cme_symlink_array_file > /tmp/cmesymlink.tmp
|
echo $cme_symlink_array_file > /tmp/cmesymlink.tmp
|
||||||
# sanity check
|
# sanity check
|
||||||
# runuser $findrealuser $getshell -c 'echo -e "\n $HOME/.local/pipx/venvs/crackmapexec/bin/$(cat /tmp/cmesymlink.tmp) $HOME/.local/bin/$(cat /tmp/cmesymlink.tmp)"'
|
# runuser $findrealuser $getshell -c 'echo -e "\n $HOME/.local/share/pipx/venvs/crackmapexec/bin/$(cat /tmp/cmesymlink.tmp) $HOME/.local/bin/$(cat /tmp/cmesymlink.tmp)"'
|
||||||
echo -e "\n $greenplus Creating symlink for user $findrealuser to ~/.local/bin/$cme_symlink_array_file "
|
echo -e "\n $greenplus Creating symlink for user $findrealuser to ~/.local/bin/$cme_symlink_array_file "
|
||||||
runuser $findrealuser $getshell -c 'symlink_file=$(cat /tmp/cmesymlink.tmp); ln -sf $HOME/.local/pipx/venvs/crackmapexec/bin/$symlink_file $HOME/.local/bin/$symlink_file'
|
runuser $findrealuser $getshell -c 'symlink_file=$(cat /tmp/cmesymlink.tmp); ln -sf $HOME/.local/share/pipx/venvs/crackmapexec/bin/$symlink_file $HOME/.local/bin/$symlink_file'
|
||||||
done
|
done
|
||||||
# cleanup
|
# cleanup
|
||||||
rm -f /tmp/cmesymlink.tmp
|
rm -f /tmp/cmesymlink.tmp
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fix_netexec() {
|
||||||
|
# place holder will add in the next revision
|
||||||
|
# function to donwload and make Netexec (nxc) from https://github.com/Pennyw0rth/NetExec
|
||||||
|
echo > /dev/null
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
fix_cme() {
|
fix_cme() {
|
||||||
findrealuser=$(logname)
|
findrealuser=$(logname)
|
||||||
echo -e "\n $greenplus Installing cme (crackmapexec)"
|
echo -e "\n $greenplus Installing cme (crackmapexec)"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue