Skip to content

Instantly share code, notes, and snippets.

@nl5887
Created March 18, 2019 19:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nl5887/0a55e297aad9bf5f4882deb44ea0ef79 to your computer and use it in GitHub Desktop.
Save nl5887/0a55e297aad9bf5f4882deb44ea0ef79 to your computer and use it in GitHub Desktop.
fish function to query greynoise for specific ip
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