Skip to content

Instantly share code, notes, and snippets.

@FranklyFuzzy
Last active May 2, 2023 17:42
Show Gist options
  • Save FranklyFuzzy/7d1b9b8f5a1fa0dc27098cd08d92213c to your computer and use it in GitHub Desktop.
Save FranklyFuzzy/7d1b9b8f5a1fa0dc27098cd08d92213c to your computer and use it in GitHub Desktop.
use terminal to open new browser window for hash or IP lookup
#!/bin/bash
if [ "$1" == "talos" ]; then
open "https://talosintelligence.com/reputation_center/lookup?search=$2"
elif [ "$1" == "whois" ]; then
whois -h whois.cymru.com " -v $2"
elif [ "$1" == "vt" ]; then
open "https://www.virustotal.com/gui/ip-address/$2"
elif [ "$1" == "vtHash" ]; then
open "https://www.virustotal.com/gui/search/$2"
else
echo "Invalid argument. Use 'whois' 'talos' 'vt' or 'vtHash"
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment