Current location

narf Source control manager Git

summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorshtrom <shtrom@1991c358-8f32-0410-a49a-990740bdf4c2>2009-06-04 00:07:53 +0000
committershtrom <shtrom@1991c358-8f32-0410-a49a-990740bdf4c2>2009-06-04 00:07:53 +0000
commit014f72d86c6a5612dd2d9158151e6a9a271d73d8 (patch)
tree8ba57d7374678aaf40f4333943cd73d87a8f3d57 /openbsd
parent2026a2cf2244fbedfc83e658ea73233e14ee5731 (diff)
[OpenBSD scripts] Filter out cert@cert.br in denyhost script.
git-svn-id: svn+ssh://scm.narf.ssji.net/svn/shtrom/scripts@553 1991c358-8f32-0410-a49a-990740bdf4c2
Diffstat (limited to 'openbsd')
-rwxr-xr-xopenbsd/denyhost.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/openbsd/denyhost.sh b/openbsd/denyhost.sh
index ca138ea..c221d11 100755
--- a/openbsd/denyhost.sh
+++ b/openbsd/denyhost.sh
@@ -39,7 +39,11 @@ 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" | \
- gsed "/whois-contact@lacnic.net/d;/mail-abuse@cert.br/d;/search-apnic-not-arin@apnic.net/d;/search-ripe-ncc-not-arin@ripe.net/d" | \
+ gsed "/whois-contact@lacnic.net/d; \
+ /mail-abuse@cert.br/d; \
+ /cert@cert.br/d; \
+ /search-apnic-not-arin@apnic.net/d; \
+ /search-ripe-ncc-not-arin@ripe.net/d" | \
sort | uniq | gsed ':a N;s/\n/, /g; ta'`
LOGIN_FILE=`mktemp ${TMP_DIR}/logins.list.XXXXXX`