Skip to content

Commit

Permalink
1.0.73 Update www build script
Browse files Browse the repository at this point in the history
  • Loading branch information
webpwnized committed Oct 19, 2024
1 parent 52e8aba commit 981492e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
7 changes: 5 additions & 2 deletions .build/www/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ ARG DATABASE_USERNAME="root"
ARG DATABASE_PASSWORD="mutillidae"

Check warning on line 29 in .build/www/Dockerfile

View workflow job for this annotation

GitHub Actions / KICS Github Action

[HIGH] Passwords And Secrets - Generic Password

Query to find passwords and secrets in infrastructure code.
ARG DATABASE_NAME="mutillidae"
ARG DATABASE_PORT="3306"
ARG ENABLE_ERROR_REPORTING=false # The value can be true or false. The default is false.
ARG ENABLE_ERROR_REPORTING=true # The value can be true or false. The default is true.

# ######################### #
# Install software packages #
Expand All @@ -52,11 +52,14 @@ RUN apt-get update && \
apt-get install --no-install-recommends -y libonig-dev && docker-php-ext-install mbstring && \
apt-get install --no-install-recommends -y libcurl4-openssl-dev && docker-php-ext-install curl && \
docker-php-ext-install mysqli && \
apt-get install --no-install-recommends -y dnsutils ntp iputils-ping git && \
apt-get install --no-install-recommends -y dnsutils git iputils-ping ntp && \
cd /tmp && \
git clone https://github.com/webpwnized/mutillidae.git mutillidae && \
cp -r mutillidae/src /var/www/mutillidae && \
rm -rf /tmp/mutillidae && \
mkdir -p /var/www/mutillidae/data /var/www/mutillidae/passwords && \
chown -R www-data:www-data /var/www/mutillidae/data /var/www/mutillidae/passwords && \
chmod -R 775 /var/www/mutillidae/data /var/www/mutillidae/passwords && \
apt-get remove --no-install-recommends -y git && \
apt-get -y upgrade && \
apt-get -y autoremove && \
Expand Down
4 changes: 2 additions & 2 deletions .tools/update-mutillidae-application.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ show_help() {
echo " and updates the application configuration to connect to the correct database and LDAP server."
echo ""
echo "Example:"
echo " ./update_containers_feature_branch.sh feature/my-new-feature"
echo " $0 feature/my-new-feature"
exit 0
}

Expand Down Expand Up @@ -128,4 +128,4 @@ main() {
}

# Call the main function
main "$@"
main "$@"
2 changes: 1 addition & 1 deletion version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.0.72
1.0.73

0 comments on commit 981492e

Please sign in to comment.