Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 uid=33(www-data) gid=33(www-data) groups=33(www-data) Safe-mode: OFF (not secure) /var/www/html/pmb/master/weevely3-master/tests/docker/ drwxr-xr-x | |
| Viewing file: Select action/file-type: #!/bin/bash
set -ex
echo "start of entrypoint"
BASE_FOLDER="$(python -c 'from tests import config;print(config.base_folder)')"
AGENT="$(python -c 'from tests import config;print(config.agent)')"
URL="$(python -c 'from tests import config;print(config.url)')"
PWD="$(python -c 'from tests import config;print(config.password)')"
# Generic environment setting install
mkdir -p "$BASE_FOLDER"
find . -type f -name '*.pyc' -exec rm -f {} \;
weevely generate -obfuscator obfusc1_php "$PWD" "$AGENT"
weevely generate "$PWD" "$BASE_FOLDER"agent.phar
a2enmod actions fcgid alias proxy_fcgi
update-alternatives --set php /usr/bin/php7.4
echo "staring services"
service ssh start
service php7.4-fpm start
service php8.2-fpm start
service apache2 start
service mariadb start
echo "grant root user to connect from network socket"
mysql -u root --password=root -e "grant all privileges on *.* to 'root'@'localhost' identified by 'root'; flush privileges;"
echo "going for a sleep..."
sleep 10000
|
:: Command execute :: | |
--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0071 ]-- |