Skip to content

Instantly share code, notes, and snippets.

@luizeof
Forked from agarzon/senderscore.sh
Created September 6, 2018 12:02
Show Gist options
  • Save luizeof/82ead9bb18232eb1f5d29e42084e3e96 to your computer and use it in GitHub Desktop.
Save luizeof/82ead9bb18232eb1f5d29e42084e3e96 to your computer and use it in GitHub Desktop.
Check Sender Score from IP using command line. bash script
#!/usr/bin/env bash │ject-with tcp-reset
# usage: ./senderscore.sh 74.91.28.11
if [ -z "$1" ]
then
echo "IP is missing as arguemnt."
exit
fi
IP=$1
REVERSED=`echo $IP | awk -F . '{print $4"."$3"."$2"."$1".score.senderscore.com"}'`
LOOKUP=`dig a $REVERSED +short`
echo `echo $LOOKUP | awk -F . '{print $4""}'`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment