Tag Archives: script

Atualize o hosts.deny para bloquear tentativas de brute force

2 Sep

Here I show a sinple script to block IPs that try brute force at your host, preventing you from use a alternative ssh port, as example. The script runs over /var/log/messages and detect via regex brute force attemps, and add IPs to /etc/hosts.deny Code: #!/bin/bash cp /etc/hosts.deny /var/tmp/hosts.deny # Jun 8 00:39:43 mintaka sshd[23332]: User […]

pingping – Verificando conexão com servidores.

25 Jun

Above is my pingping script. This script send a mail alert when some server stop, based on regular ICMP requests. Read it! #!/bin/sh # This script send ICMP requests for each server on SERVIDORES list and sends # emails for emails in LISTA_EMAILS list why one of servers doesn’t reply # You only receive alerts […]