Exploit databaseDownload repository ZIP
GH-15eec0abd283a43e24d1db89f5a72a79
adamwen230/cve-2023-39539-poc
Sources for CVE-2023-39539
1 sourcePreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars.
Repository files4
adamwen230/cve-2023-39539-pocRevision efedf8241011
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
entrypoint.sh
Shell · 691 bytes#!/bin/bash
set -ex
apt-get update
apt-get install -y python3
wait-for-it db:3306 -t 300 -- echo "database is connected"
if [[ ! $(mysql --host=db --user=root --password=root cacti -e "show tables") =~ "automation_devices" ]]; then
mysql --host=db --user=root --password=root cacti < /var/www/html/cacti.sql
mysql --host=db --user=root --password=root cacti -e "UPDATE user_auth SET must_change_password='' WHERE username = 'admin'"
mysql --host=db --user=root --password=root cacti -e "SET GLOBAL time_zone = 'UTC'"
fi
chown www-data:www-data -R /var/www/html
# first arg is `-f` or `--some-option`
if [ "${1#-}" != "$1" ]; then
set -- apache2-foreground "$@"
fi
exec "$@"