From fd24de3fd19fab7d051305f403b6a2a130ce6f1f Mon Sep 17 00:00:00 2001 From: Dewalt <> Date: Wed, 5 Jul 2023 06:09:04 -0500 Subject: [PATCH] rev 1.7.2 update create start-api-hacking.sh --- README.md | 4 ++++ pimpmykali.sh | 14 +++++++++++--- 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 9d4fad5..a8075e0 100644 --- a/README.md +++ b/README.md @@ -39,6 +39,10 @@ # Writeups / Honorable Mentions - ip3c4c_n00b https://ip3c4c.com/2202_homelab_vmware/ +# Revision 1.7.2 - Hacking API Lab update + - added creation of start-api-hacking.sh + - this is to help mitigate issues with unhealthy containers + # Revision 1.7.1d - Tracelabs Osint VM - added detection of the tracelabs osint vm and prevent the script from running if specific conditions are met, this is due to python incompatibility diff --git a/pimpmykali.sh b/pimpmykali.sh index 1cf40d4..cd2e96d 100755 --- a/pimpmykali.sh +++ b/pimpmykali.sh @@ -9,7 +9,7 @@ # Standard Disclaimer: Author assumes no liability for any damage # revision var - revision="1.7.1d" + revision="1.7.2" # unicorn puke: red=$'\e[1;31m' @@ -1318,6 +1318,15 @@ hacking_api_create_cleanupsh() { echo " *) exit ;;" >> $cleanup_script echo " esac" >> $cleanup_script chmod +x cleanup.sh + + startup_script="start-api-hacking.sh" + echo -e "\n $greenplus Creating start-api-hacking.sh" + echo -e "#!/bin/bash" > $startup_script + echo -e "\n" >> $startup_script + echo -e "cd ~/labs/crAPI/deploy/docker" >> $startup_script + echo -e "sudo VERSION=develop docker-compose -f docker-compose.yml pull" >> $startup_script + echo -e "sudo VERSION=develop docker-compose -f docker-compose.yml --compatibility up -d" >> $startup_script + chmod +x start-api-hacking.sh } # code commented out for now, debtaing the idea of a postman desktop icon @@ -1376,8 +1385,7 @@ hacking_api_prereq() { git clone https://github.com/OWASP/crAPI $silent # create cleanup.sh in the crAPI directory hacking_api_create_cleanupsh - chmod +x cleanup.sh - cd /$finduser/labs/crAPI/deploy/docker + cd /$finduser/labs/crAPI/deploy/docker else if [ ! -d /home/$finduser/labs ] then