Last active
May 2, 2023 17:42
-
-
Save FranklyFuzzy/7d1b9b8f5a1fa0dc27098cd08d92213c to your computer and use it in GitHub Desktop.
use terminal to open new browser window for hash or IP lookup
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
#!/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