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/sh | |
/sbin/iptables -A INPUT -p tcp --syn --dport 5118 -j LOG | |
/sbin/iptables -A INPUT -p tcp --tcp-flags FIN FIN --dport 5118 -j LOG |
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/sh | |
# Check yesterday's post.pcap file and | |
# report by Email if there's strange file post actions. | |
# Put this script in cron to run everyday. | |
pcapfile=`date -d"yesterday" +%m.%d` | |
grep -a Dispo post.pcap-$pcapfile | grep -aiE "php|asp" > t | |
if [ -s t ] ; then | |
mail -s "Strange file post action found!" [email protected] < t |
NewerOlder