-
Notifications
You must be signed in to change notification settings - Fork 0
/
linkAnalyzer.py
32 lines (24 loc) · 916 Bytes
/
linkAnalyzer.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#! /usr/bin/env python
# Link Analyzer Script/Toolkit
# Author: Danny Weng
# Reference:
# https://github.com/dannyweng
# import modules
try:
## import argparse for future implementations
import sys
from modules import urlScan
from modules import unShortenLink
from modules import virusTotal
from modules import whoisquery
# Any import errors print to screen and exit
except (Exception, error):
print ('error')
sys.exit(1)
user_input = unShortenLink.shortenLink(input("\nPlease provide a link you want analyzed : \n\n"))
# Comment out any of the tools below if you don't want the output from certain tools:
urlScan.urlScanFunc(user_input) ## urlScan.io
virusTotal.vtFunc(user_input) ## VirusTotal
whoisquery.whois(user_input) ## whois
print('\nThe script opened up a few tabs for you to review.\n\n\
fyi: it takes urlscan about a whole minute to scan the site so wait a minute and refresh page')