sudo apt install fail2ban
sudo systemctl enable fail2ban.service
cp /etc/fail2ban/jail.conf /etc/fail2ban/jail.local
Keeping a list here of automated attack IPs that use the cloudflare VPN. These are used by automated vulnerability scaners. Fuck those assholes.
173.245.48.0/20 103.21.244.0/22 103.22.200.0/22 103.31.4.0/22 141.101.64.0/18 108.162.192.0/18 190.93.240.0/20
Here's a safe and secure method of storing passwords, encrypted, for use in shell scripts. This is in bash,
but can easily be ported to other shells as the bulk of the work is handled by the openssl
and sshpass
apps.
openssl
and sshpass
:sudo apt update && sudo apt install openssl sshpass -y
#!/usr/bin/bash | |
sudo apt-mark auto $(apt-mark showmanual | grep -E "^linux-([[:alpha:]]+-)+[[:digit:].]+-[^-]+(|-.+)$") |
You need to have the application curl installed. Most Linux distros will already have it included. However, you may need to run either:
$ sudo dnf -y install curl
#!/bin/bash | |
sudo apt install sssd heimdal-clients msktutil | |
sudo mv /etc/krb5.conf /etc/krb5.conf.default | |
COMP=$HOSTNAME | |
read -p 'What is the domain name? (example: URLFINANCIAL without the .local) ' DOMAIN | |
LCASEDOMAIN=`echo "$DOMAIN" | tr '[:upper:]' '[:lower:]'` |
FROM ubuntu:latest | |
RUN apt-get update \ | |
&& apt-get install -y python3-pip python3-dev \ | |
&& cd /usr/local/bin \ | |
&& ln -s /usr/bin/python3 python \ | |
&& pip3 install --upgrade pip | |
# INSTALL DEPENDENCIES | |
RUN apt-get install -y curl unzip openjdk-8-jre-headless xvfb libxi6 libgconf-2-4 |
#!/bin/bash | |
find . -type d -empty -exec rm -i -R {} \; |
#!/bin/bash | |
while true; | |
do | |
printf "$(awk -v c="$(tput cols)" -v s="$RANDOM" 'BEGIN{srand(s);while(--c>=0){printf("\xe2\x96\\%s",sprintf("%o",150+int(10*rand())));}}')"; | |
done |