Tired of having to pay people to setup the dependencies and utils for your MC server?
No need anymore! I've setup a fully automatic installation script for mysql/mariadb/phpmyadmin/ and of course a port scanner!
This script is 100% FREE!
Whats It Does?
Next Update
Donate: BTC | 1CFBrLEYLU3aneJhtaKu4pjMd19DRJhQnv
Donate: CakeCoin | CLnbmdALBDLPwHnuNKKRxrSC1r2W3MUkyZ
XMPP [email protected]
No need anymore! I've setup a fully automatic installation script for mysql/mariadb/phpmyadmin/ and of course a port scanner!
This script is 100% FREE!
Whats It Does?
- Update phpmyadmin to 4.6.3
- Install latest version of MySQL
- Nmap scans all possible ports UDP/TCP Scan
- IPtables auto Setup with port 3306 open
Next Update
- Complete Configuration with OS /Centos/Ubuntu/
- Auto Utilities Update
Code:
#!/bin/bash
/*
AutoInstaller For MySQL/MariaDB/PhPMyadmin/nmap
This Script is FREE By: Boatnet
XMPP: [email protected]
*Update* Added a port scanner for security :)
*/
/*
*** phpd.sh ***
# ___ _ _____ _ _ _
# / _ \ | | |_ _| | | | | |
#/ /_\ \_ _| |_ ___ | | _ __ ___| |_ __ _| | | ___ _ __
#| _ | | | | __/ _ \ | || '_ \/ __| __/ _` | | |/ _ \ '__|
#| | | | |_| | || (_) | _| || | | \__ \ || (_| | | | __/ |
#\_| |_/\__,_|\__\___/ \___/_| |_|___/\__\__,_|_|_|\___|_|
*** phpd.sh ***
*/
#User : root
if [ $USER != 'root' ]
then
echo "REQUIRES ROOT"
exit 0
fi
#Server IP
yum install wget -y
IP=$(wget -qO- ifconfig.me/ip)
#Server OS Version and Architecture
read -p "What version of Centos are you Running? [5,6]?" VERSION
echo $VERSION
ARCH=$(uname -m | sed 's/x86_//;s/i[3-6]86/32/')
#Server Utlis
yum install wget perl gcc make nano unzip tar httpd ftpd php php-mysql -y
echo -e "\x1b[31mInstalled wget, perl, gcc, make, nano, unzip, tar, httpd, ftpd"
sleep 3
#Server Update
yum update -y
echo -e "\x1b[31mUpdated System, Ready to go!"
sleep 3
#Mysql Install
yum install mysql mariadb -y
/sbin/service mysqld start
echo -e "\x1b[31mMysql/mariaDB updated and installed!"
sleep 3
#Start Mysql
/usr/bin/mysql_secure_installation
#MariaDB Install
yum install mariadb -y
wget https://downloads.mariadb.org/interstitial/mariadb-10.1.16/source/mariadb-10.1.16.tar.gz/from/http%3A//ftp.osuosl.org/pub/mariadb/
tar -xvvf *
#Phpmyadmin Install
yum install phpmyadmin -y
wget https://files.phpmyadmin.net/phpMyAdmin/4.6.3/phpMyAdmin-4.6.3-all-languages.tar.gz
tar -xvvf *
service httpd restart
echo -e "\x1b[31mPhpmyadmin installed! Latest verion!"
sleep 3
#Install IPtables
yum install iptables -y
#Configure Iptables
iptables -I INPUT -p tcp --dport 3306 -m state --state NEW,ESTABLISHED -j ACCEPT
iptables -I OUTPUT -p tcp --sport 3306 -m state --state ESTABLISHED -j ACCEPT
service iptables save
#Launch MySQL
/sbin/service mysqld start
chkconfig mysqld on
#Nmap Scan
nmap -sS -sV -p- -A $ -v -o portScanTCP.txt
nmap -sU -sV -p- -A $ -v -o portScanUDP.txt
echo -e "\x1b[31m Do nano portScan.txt"
#Enter MySQL
/usr/bin/mysql -u root -p
Donate: BTC | 1CFBrLEYLU3aneJhtaKu4pjMd19DRJhQnv
Donate: CakeCoin | CLnbmdALBDLPwHnuNKKRxrSC1r2W3MUkyZ
XMPP [email protected]
Last edited:
