Skip to content

Commit

Permalink
Template Paths and Bug Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Jsitech committed Aug 16, 2017
1 parent bf1ab23 commit ba0cf57
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 19 deletions.
33 changes: 17 additions & 16 deletions UbuntuServer_16.04LTS/jshielder.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
#!/bin/bash

# JShielder v2.1
# JShielder v2.2
# Deployer for Ubuntu Server 16.04 LTS
#
# Jason Soto
# www.jsitech.com
# www.jasonsoto.com
# www.jsitech-sec.com
# Twitter = @JsiTech

# Based from JackTheStripper Project
Expand Down Expand Up @@ -278,7 +279,7 @@ install_secure_mysql(){
echo ""
apt-get install mysql-server
echo -n " configuring MySQL............ "
cp templates/mysql /etc/mysql/my.cnf; echo " OK"
cp templates/mysql /etc/mysql/mysql.conf.d/mysqld.cnf; echo " OK"
mysql_secure_installation
service mysql restart
say_done
Expand Down Expand Up @@ -413,11 +414,11 @@ install_secure_php(){
echo -e "\e[93m[+]\e[00m Installing, Configuring and Optimizing PHP"
echo -e "\e[34m---------------------------------------------------------------------------------------------------------\e[00m"
echo ""
apt-get install php5 php5-cli php-pear
apt-get install php5-mysql python-mysqldb
apt-get install php php-cli php-pear
apt-get install php-mysql python-mysqldb
echo -n " Replacing php.ini..."
cp templates/php /etc/php5/apache2/php.ini; echo " OK"
cp templates/php /etc/php5/cli/php.ini; echo " OK"
cp templates/php /etc/php/7.0/fpm/php.ini; echo " OK"
cp templates/php /etc/php/7.0/cli/php.ini; echo " OK"
service apache2 restart
say_done
}
Expand All @@ -431,12 +432,12 @@ install_php_nginx(){
echo -e "\e[93m[+]\e[00m Installing, Configuring and Optimizing PHP/PHP-FPM"
echo -e "\e[34m---------------------------------------------------------------------------------------------------------\e[00m"
echo ""
apt-get install php5-fpm php5 php5-cli php-pear
apt-get install php5-mysql python-mysqldb
apt-get install php-fpm php php-cli php-pear
apt-get install php-mysql python-mysqldb
echo -n " Replacing php.ini..."
cp templates/php /etc/php5/cli/php.ini; echo " OK"
cp templates/phpnginx /etc/php5/fpm/php.ini; echo "OK"
service php5-fpm restart
cp templates/php /etc/php/7.0/cli/php.ini; echo " OK"
cp templates/phpnginx /etc/php/7.0/fpm/php.ini; echo "OK"
service php-fpm restart
service nginx restart
say_done
}
Expand Down Expand Up @@ -586,8 +587,8 @@ additional_packages(){
echo "Install PHPUnit..........";
pear config-set auto_discover 1
mv phpunit-patched /usr/share/phpunit
echo include_path = ".:/usr/share/phpunit:/usr/share/phpunit/PHPUnit" >> /etc/php5/apache2/php.ini
echo include_path = ".:/usr/share/phpunit:/usr/share/phpunit/PHPUnit" >> /etc/php5/cli/php.ini
echo include_path = ".:/usr/share/phpunit:/usr/share/phpunit/PHPUnit" >> /etc/php/7.0/cli/php.ini
echo include_path = ".:/usr/share/phpunit:/usr/share/phpunit/PHPUnit" >> /etc/php/7.0/fpm/php.ini
service apache2 restart
say_done
}
Expand Down Expand Up @@ -929,8 +930,8 @@ install_phpsuhosin(){
wget https://sektioneins.de/files/repository.asc
apt-key add repository.asc
apt-get update
apt-get install php5-suhosin-extension
php5enmod suhosin
apt-get install php-suhosin-extension
phpenmod suhosin
service apache2 restart
echo "OK"
say_done
Expand Down
6 changes: 3 additions & 3 deletions UbuntuServer_16.04LTS/templates/texts/welcome
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
================================================================================
JShielder v 2.0
JShielder v 2.2
Linux Server Hardening and LAMP Deployment script

Developed by Jason Soto <jason_soto@#jsitech.com>
http://www.jsitech.com/ | http://us.jsitech.com/
Developed by Jason Soto <www.jasonsoto.com>
http://www.jsitech-sec.com

Based of JackTheStripper Project
Credits to Eugenia Bahit
Expand Down

0 comments on commit ba0cf57

Please sign in to comment.