From fdef5cf3b1ca76ffe7933f22e99eea7ecce8b404 Mon Sep 17 00:00:00 2001 From: Mason Sipe <37341129+mksipe@users.noreply.github.com> Date: Sun, 14 Oct 2018 16:51:53 -0500 Subject: [PATCH] Add files via upload --- Daemonconf.sh | 2 +- RecSetup.sh | 7 ++++--- Snortconf.sh | 2 +- network.sh | 24 ------------------------ 4 files changed, 6 insertions(+), 29 deletions(-) diff --git a/Daemonconf.sh b/Daemonconf.sh index 4f1c63a..a84d78b 100644 --- a/Daemonconf.sh +++ b/Daemonconf.sh @@ -1,5 +1,5 @@ #!/bin/sh sudo apt install daemonlogger -y sudo dpkg-query -l | grep daemonlogger * -echo "0 12 * * * daemonlogger" | sudo tee -a /etc/crontab +echo "0 12 * * * daemonlogger -D " | sudo tee -a /etc/crontab echo "Daemonlogger Installed" diff --git a/RecSetup.sh b/RecSetup.sh index 50c9a68..80a4118 100644 --- a/RecSetup.sh +++ b/RecSetup.sh @@ -42,23 +42,23 @@ apt autoremove -y echo "Running Setup Scripts" ./Stealth-Mode.sh ./UFWC2.sh -ufw enable ./umasks.sh ./users-groups.sh ./User-Auth.sh -./Apache.sh +if [ $(which apache2 | grep / -c) = 1; then ./Apache.sh; else echo "Skipping Apache2 Installation"; fi] ./banners.sh ./files.sh ./iptables.sh ./iptables2.sh ./network.sh -./nginx.sh +if [ $(which nginx | grep / -c) = 1; then ./nginx.sh; else echo "Skipping Apache2 Installation"; fi ] ./services.sh ./ssh.sh ./sudo-su.sh ./ssl.sh ./proftpd.sh ./users-linux.sh +ufw enable ./A:apache2.sh ./A:banners.sh ./A:files.sh @@ -76,6 +76,7 @@ ufw enable ./prerm ./ipfilter.sh ./ipfw.sh +./SElinux.sh ./Daemonconf.sh ./Clamconf.sh ./Snortconf.sh diff --git a/Snortconf.sh b/Snortconf.sh index 85b88e1..078bdd3 100644 --- a/Snortconf.sh +++ b/Snortconf.sh @@ -6,4 +6,4 @@ systemctl enable snort systemctl start snort systemctl status snort echo "Snort Installed" -echo "0 12 * * * snort -vc /etc/snort/snort.conf " | sudo tee -a /etc/crontab \ No newline at end of file +echo "0 12 * * * snort -D -vc /etc/snort/snort.conf " | sudo tee -a /etc/crontab \ No newline at end of file diff --git a/network.sh b/network.sh index 2695808..8ac4492 100644 --- a/network.sh +++ b/network.sh @@ -1,27 +1,3 @@ -#!/bin/bash - -# This file is part of blue-team -# Copyright (C) 2017 @maldevel -# https://github.com/maldevel/blue-team -# -# blue-team - Blue Team Scripts. -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . -# -# For more see the file 'LICENSE' for copying permission. - - # Disable IP forwarding sed -i "s/#net.ipv4.ip_forward=1/net.ipv4.ip_forward=0/" /etc/sysctl.conf