Skip to content

Commit

Permalink
whoops
Browse files Browse the repository at this point in the history
  • Loading branch information
nikolojedison committed Feb 6, 2018
1 parent 97f2a6a commit 79da27d
Showing 1 changed file with 9 additions and 69 deletions.
78 changes: 9 additions & 69 deletions nukem.sh
Original file line number Diff line number Diff line change
Expand Up @@ -277,61 +277,6 @@ cp deb-rsyslog.conf /etc/rsyslog.conf
## CentOS
elif [ $answer1 = "3" ]; then

echo "Disabling, part 1..."
chmod -R 666 /usr/bin/akregator
chmod -R 666 /usr/bin/alsaloop
chmod -R 666 /usr/bin/alsamixer
chmod -R 666 /usr/bin/amixer
chmod -R 666 /usr/bin/aplay
chmod -R 666 /usr/bin/aplaymidi
chmod -R 666 /usr/bin/arecord
chmod -R 666 /usr/bin/arecordmidi
chmod -R 666 /usr/bin/artsbuilder
chmod -R 666 /usr/bin/artscat
chmod -R 666 /usr/bin/artscontrol
chmod -R 666 /usr/bin/artsd
chmod -R 666 /usr/bin/artsdsp
chmod -R 666 /usr/bin/artsmessage
chmod -R 666 /usr/bin/artsplay
chmod -R 666 /usr/bin/artsrec
chmod -R 666 /usr/bin/artsshell
chmod -R 666 /usr/bin/artswrapper
chmod -R 666 /usr/bin/blackjack
chmod -R 666 /usr/bin/btapplet
chmod -R 666 /usr/bin/cadaver
chmod -R 666 /usr/bin/cameratopam
chmod -R 666 /usr/bin/capifax*
chmod -R 666 /usr/bin/cups*
chmod -R 666 /usr/bin/eggcups
chmod -R 666 /usr/bin/evince*
chmod -R 666 /usr/bin/evolution
chmod -R 666 /usr/bin/exchangewizard
chmod -R 666 /usr/bin/fax*
chmod -R 666 /usr/bin/foomatic*
chmod -R 666 /usr/bin/games*
chmod -R 666 /usr/bin/gif2tiff
chmod -R 666 /usr/bin/gimp*
chmod -R 666 /usr/bin/*.py
chmod -R 666 /usr/bin/jpeg*
chmod -R 666 /usr/bin/kcalc
chmod -R 666 /usr/bin/kclock*
chmod -R 666 /usr/bin/*.cups
chmod -R 666 /usr/bin/mahjongg
chmod -R 666 /usr/bin/oocalc
chmod -R 666 /usr/bin/oodraw
chmod -R 666 /usr/bin/ooffice
chmod -R 666 /usr/bin/ooimpress
chmod -R 666 /usr/bin/oomath
chmod -R 666 /usr/bin/ooviewdoc
chmod -R 666 /usr/bin/oowriter
chmod -R 666 /usr/bin/openoffice.org*
chmod -R 666 /usr/bin/pdf*
chmod -R 666 /usr/bin/rhythmbox*
chmod -R 666 /usr/bin/rnews
chmod -R 666 /usr/bin/smb*
chmod -R 666 /usr/bin/x0vncserver
chmod -R 666 /usr/bin/Xvnc

echo "Firewall reset, adding CentOS rules..."

PUB_IF="eth0"
Expand Down Expand Up @@ -385,6 +330,15 @@ echo "Fixing repos..."
rm -f /var/cache/yum/timedhosts.txt
rm -rf rpmforge.repo
rm -rf mirrors-rpmforge*
echo "Follow the information at the DigitalOcean link - https://www.digitalocean.com/community/tutorials/how-to-install-aide-on-a-digitalocean-vps"
rm -f /var/cache/yum/timedhosts.txt
yum clean metadata
yum clean all
yum makecache
yum install aide -y
yum install yum-fastestmirror -y
yum install shorewall -y
yum install nmap -y

# Stop and disable unneeded services
echo "Disabling services..."
Expand Down Expand Up @@ -437,17 +391,11 @@ chkconfig avahi-daemon off > /dev/null 2>&1
/etc/init.d/bluetooth stop
/etc/init.d/cups stop
/etc/init.d/cups-config-daemon stop
/etc/init.d/dc_client stop
/etc/init.d/dc_server stop
/etc/init.d/dhcdbd stop
/etc/init.d/dovecot stop
/etc/init.d/dropbox stop
/etc/init.d/dund stop
/etc/init.d/netconsole stop
/etc/init.d/netfs stop
/etc/init.d/pand stop
/etc/init.d/pcscd stop
/etc/init.d/vncserver stop
/etc/init.d/wdaemon stop

# Harden kernel, apply settings, restart NIC
Expand Down Expand Up @@ -530,14 +478,6 @@ echo "blacklist usb-storage" > /etc/modprobe.d/blacklist-usbstorage

\cp cent-rsyslog.conf /etc/rsyslog.conf

echo "Follow the information at the DigitalOcean link - https://www.digitalocean.com/community/tutorials/how-to-install-aide-on-a-digitalocean-vps"
yum clean metadata
yum clean all
yum makecache
yum install aide -y
yum install yum-fastestmirror -y
yum install shorewall -y

rpm -e imagemagick
rpm -e dovecot
rpm -e evolution
Expand Down

0 comments on commit 79da27d

Please sign in to comment.