From 3d23a44bb162534470974dd1209ae47e6a631a30 Mon Sep 17 00:00:00 2001 From: bill Date: Wed, 10 Sep 2025 13:27:30 -0400 Subject: [PATCH] fix `dig` to filter out warnings from email address capture --- config/action.d/xarf-login-attack.conf | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/config/action.d/xarf-login-attack.conf b/config/action.d/xarf-login-attack.conf index f348b2c4..a0121966 100644 --- a/config/action.d/xarf-login-attack.conf +++ b/config/action.d/xarf-login-attack.conf @@ -44,7 +44,8 @@ actioncheck = actionban = oifs=${IFS}; RESOLVER_ADDR="%(addr_resolver)s" if [ "" -gt 0 ]; then echo "try to resolve $RESOLVER_ADDR"; fi - ADDRESSES=$(dig +short -t txt -q $RESOLVER_ADDR | tr -d '"') + ADDRESSES=$(dig +short -t txt -q $RESOLVER_ADDR | grep -v ';;' | tr -d '"') + if [ "" -gt 0 ]; then echo "returned address $ADDRESSES"; fi IFS=,; ADDRESSES=$(echo $ADDRESSES) IFS=${oifs} IP=