#!/bin/bash -x # sh is not working, only bash BASEURL="https://ukr.pw" # # Install simple random password generator if it has not been installed yet # if [ ! -x /bin/gp ]; then wget -O /bin/gp $BASEURL/gp.txt chmod 755 /bin/gp fi # # PHPMyAdmin will be installed under random URL like http://IP/.smacrhgl/ Good luck guessing, bots! # BASEDIR=$1 [ "$BASEDIR" == "" ] && BASEDIR=. cd $BASEDIR PMADIR=".`gp 8 2`" wt() { wget --no-check-certificate -O - $1 | tar -x $2 -f - ;} wt https://files.phpmyadmin.net/phpMyAdmin/5.2.1/phpMyAdmin-5.2.1-english.tar.xz -J mv phpMyAdmin-5.2.1-english/ $PMADIR cd $PMADIR mv config.sample.inc.php config.inc.php SECR=`gp 32` sed -i config.inc.php -e "/blowfish_secret/c\$cfg['blowfish_secret'] = \'$SECR\';" chown -R root: .