Created
November 20, 2014 23:20
-
-
Save LoadLow/1c64491652f8ecea931b to your computer and use it in GitHub Desktop.
Remote addr bad score in bash
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function ipscore() { local OLD_IFS="$IFS" IFS=","; local result="`curl -s "http://wafsec.com/api?ip=$1"`" && local results=(${result}) && printf -- '%s\n' "${results[@]}" | grep '"Score":' | cut -d':' -f2; IFS="$OLD_IFS"; } | |
ipscore ${target_ip} | |
$ipscore 186.78.151.135 | |
2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment