$argon2id$v=19$m=64,t=512,p=2$gXOmC37WMMywKRmjMGazDg$FkA/Zh5lTtovWBgbGRyFJg
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl | |
# Script que permite dar de alta un usuario. | |
# Author: Víctor Parra [parra@usal.es] | |
# AVISO: Requiere permisos de root | |
# Es necesrio instalar el File::Copy y el Linux::usermod | |
# ># perl -MCPAN -e 'install File::Copy::Recursive' | |
# ># perl -MCPAN -e 'install Linux::usermod' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl | |
# Script que permite dar de baja un usuario. | |
# Author: Víctor Parra [parra@usal.es] | |
# AVISO: Requiere permisos de root | |
# Es necesario instalar el File::Path y el Linux::usermod | |
# ># perl -MCPAN -e 'install File::Path' | |
# ># perl -MCPAN -e 'install Linux::usermod' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [[ $# -ne 1 ]] | |
then | |
echo "\nSe requiere un mensaje para enviar. Ejemplo de uso: $0 \"Mensaje de prueba\"" | |
exit 1 | |
fi | |
source /home/$USER/.tg_keys |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# This script should be allocated in /etc/pam.scripts/ssh_alert.sh | |
# Then, in /etc/pam.d/sshd add this line: | |
# # SSH Alert script | |
# session required pam_exec.so /etc/pam.scripts/ssh_alert.sh | |
echo $PAM_TYPE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[sshd] | |
# To use more aggressive ssh modes set filter parameter "mode": | |
# normal (default), ddos, extra or aggressive (combines all). | |
# See "tests/files/logs/sshd" or "filter.d/sshd.conf" for usage example and details. | |
#mode = normal | |
port = ssh | |
enabled = true | |
filter = sshd | |
ignoreip = 192.168.1.0/24 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Definition] | |
# Option: actionstart | |
# Notes : command executed once at the start of Fail2Ban | |
# Tags : | |
# Values: CMD | |
actionstart = | |
# Option: actionstop | |
# Notes : command executed once at the end of Fail2Ban |