http://www.shaunfreeman.co.uk/install-fail2ban-on-centos-6-with-plesk/
http://forum.parallels.com/showthread.php?72464-Shell-script-for-checking-mail-queue
http://www.devcu.com/forums/topic/274-locking-down-postfix-against-spam/
| # by Christian Blechert <christian@serverless.industries> | |
| # ATTENTION! It only checks ext3 + ext4 filesystems right now! | |
| # Extend it if you use something else | |
| # Repo: https://github.com/perryflynn/find-log4j | |
| while read -u 3 -r JAR | |
| do | |
| #!/usr/bin/env python3 | |
| import subprocess | |
| import re | |
| from pypred import Predicate | |
| SPACE = re.compile(r"\s+") | |
| def mailq(): |
| <?php | |
| /* | |
| * @desc Add custom data to what is returned by the web services. All custom data will be available to the JS API. | |
| * @param $post_data | |
| * @param $post | |
| * @param $component | |
| */ | |
| function wpak_add_custom_data( $post_data, $post, $component ) { | |
| $taxonomy = 'category'; // We search for categories |
| #!/bin/bash | |
| PAST_TIMESTAMP="$(date +%s -d '5 min ago')000" | |
| mongoexport \ | |
| --csv --quiet \ | |
| --fields timestamp,source_ip,source_port,destination_port,honeypot \ | |
| --db mnemosyne \ | |
| --collection session \ | |
| --query "{ timestamp: {\$gt: new Date($PAST_TIMESTAMP)}}" > /tmp/mhn-report.txt |
| <?php | |
| $last_names = array( | |
| 'Abbott', | |
| 'Acevedo', | |
| 'Acosta', | |
| 'Adams', | |
| 'Adkins', | |
| 'Aguilar', | |
| 'Aguirre', | |
| 'Albert', |
| #!/bin/sh | |
| # Schwanzvergleich powered by http://pinguinblog.de | |
| export LC_ALL=C | |
| echo `uptime|grep days|sed 's/.*up \([0-9]*\) day.*/\1\/10+/'; cat /proc/cpuinfo|grep '^cpu MHz'|awk '{print $4"/30 +";}';free|grep '^Mem'|awk '{print $3"/1024/3+"}'; df -P -k -x nfs -x smbfs | grep -v '(1k|1024)-blocks' | awk '{if ($1 ~ "/dev/(cciss|scsi|sd)"){ s+= $2} s+= $2;} END {print s/1024/50"/15+70";}'`|bc|sed 's/\(.$\)/.\1cm/' |
| <?php | |
| $names = array( | |
| 'Allison', | |
| 'Arthur', | |
| 'Ana', | |
| 'Alex', | |
| 'Arlene', | |
| 'Alberto', | |
| 'Barry', |