rev 1.7.2 update create start-api-hacking.sh
This commit is contained in:
parent
6f79589eb0
commit
fd24de3fd1
|
|
@ -39,6 +39,10 @@
|
||||||
# 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.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
|
# Revision 1.7.1d - Tracelabs Osint VM
|
||||||
- added detection of the tracelabs osint vm and prevent the script from
|
- added detection of the tracelabs osint vm and prevent the script from
|
||||||
running if specific conditions are met, this is due to python incompatibility
|
running if specific conditions are met, this is due to python incompatibility
|
||||||
|
|
|
||||||
|
|
@ -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.1d"
|
revision="1.7.2"
|
||||||
|
|
||||||
# unicorn puke:
|
# unicorn puke:
|
||||||
red=$'\e[1;31m'
|
red=$'\e[1;31m'
|
||||||
|
|
@ -1318,6 +1318,15 @@ hacking_api_create_cleanupsh() {
|
||||||
echo " *) exit ;;" >> $cleanup_script
|
echo " *) exit ;;" >> $cleanup_script
|
||||||
echo " esac" >> $cleanup_script
|
echo " esac" >> $cleanup_script
|
||||||
chmod +x cleanup.sh
|
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
|
# 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
|
git clone https://github.com/OWASP/crAPI $silent
|
||||||
# create cleanup.sh in the crAPI directory
|
# create cleanup.sh in the crAPI directory
|
||||||
hacking_api_create_cleanupsh
|
hacking_api_create_cleanupsh
|
||||||
chmod +x cleanup.sh
|
cd /$finduser/labs/crAPI/deploy/docker
|
||||||
cd /$finduser/labs/crAPI/deploy/docker
|
|
||||||
else
|
else
|
||||||
if [ ! -d /home/$finduser/labs ]
|
if [ ! -d /home/$finduser/labs ]
|
||||||
then
|
then
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue