Skip to content

Instantly share code, notes, and snippets.

@LoadLow
Created November 20, 2014 23:20
Show Gist options
  • Save LoadLow/1c64491652f8ecea931b to your computer and use it in GitHub Desktop.
Save LoadLow/1c64491652f8ecea931b to your computer and use it in GitHub Desktop.
Remote addr bad score in bash
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