Current location

narf Source control manager Git

summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorshtrom <shtrom@1991c358-8f32-0410-a49a-990740bdf4c2>2009-05-25 01:49:33 +0000
committershtrom <shtrom@1991c358-8f32-0410-a49a-990740bdf4c2>2009-05-25 01:49:33 +0000
commit312c9606692a7d53aa26bf3e15bb4d8141de844d (patch)
tree09c88cf4f66e75f855aac4b692475de3d6f93ea6 /openbsd
parentd928677ff8f2fc398899ff01f08b07746b3a2a8a (diff)
[OpenBSD scripts] Bette RE to catch email addresses (I hope).
git-svn-id: svn+ssh://scm.narf.ssji.net/svn/shtrom/scripts@547 1991c358-8f32-0410-a49a-990740bdf4c2
Diffstat (limited to 'openbsd')
-rwxr-xr-xopenbsd/denyhost.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/openbsd/denyhost.sh b/openbsd/denyhost.sh
index e8a8aa5..8226089 100755
--- a/openbsd/denyhost.sh
+++ b/openbsd/denyhost.sh
@@ -44,7 +44,7 @@ for IP in `grep -v -f ${TMP_DIR}/blockers.list $NEW_BLOCKERS_FILE`; do
WHOIS_FILE=`mktemp ${TMP_DIR}/whois.XXXXXX`
whois $IP > $WHOIS_FILE
- ABUSE=`grep -v changed $WHOIS_FILE | gsed -n "s/.*[^_A-Za-z0-9]\([-+\._A-Za-z0-9]\+@\([-A-Za-z0-9]\+\.\)\+[A-Za-z]\+\).*/\1/p" | \
+ ABUSE=`grep -v changed $WHOIS_FILE | gsed -n "s/.*[^-+_A-Za-z0-9]\([-+\._A-Za-z0-9]\+@\([-A-Za-z0-9]\+\.\)\+[A-Za-z]\+\).*/\1/p" | \
gsed "/whois-contact@lacnic.net/d;/mail-abuse@cert.br/d;/search-apnic-not-arin@apnic.net/d" | \
sort | uniq | gsed ':a N;s/\n/, /g; ta'`