Created
March 18, 2019 19:49
-
-
Save nl5887/0a55e297aad9bf5f4882deb44ea0ef79 to your computer and use it in GitHub Desktop.
fish function to query greynoise for specific ip
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 greynoise | |
if test (count $argv) -eq 0 | |
echo "No arguments specified. Usage:\necho greynoise {ip}" | |
return 1 | |
end | |
set ip $argv[1] | |
curl -s -XPOST -d "ip=$ip" 'http://api.greynoise.io:8888/v1/query/ip'|jq '.' | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment