Skip to content

Instantly share code, notes, and snippets.

@agarzon
Created February 10, 2017 16:54
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save agarzon/1a5a148ba0bade1033dc66716ebd98da to your computer and use it in GitHub Desktop.
Save agarzon/1a5a148ba0bade1033dc66716ebd98da 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""}'`
@davidusany
Copy link

Hey,

I've tried running this in CentOS Server & MacBook but its not working. Is there any specific requirement?

Thanks

@href
Copy link

href commented Mar 5, 2018

It's possible that this script doesn't return anything if the sender score of the ip is unknown. Check senderscore.com if the given ip has an actual score associated to it.

@sandesh136
Copy link

How can we give the IP address as an argument in this, can someone help?

@mlambie
Copy link

mlambie commented Feb 23, 2021

It looks like the score.senderscore.com domain is no longer available, so http://11.28.91.74.score.senderscore.com/ (using the example IP) won't work.

@patrickbucher
Copy link

Are there any other services available that can be used for automation?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment