Virustotal API Scanner
usage: main.py [-h] [-y] {file,single,upload} ...
This is a simple script to get the last analysis stats of an IP address from VirusTotal
positional arguments:
{file,single,upload}
file File mode
single Single mode
upload Upload mode
options:
-h, --help show this help message and exit
-y, --yes Force yes
usage: main.py file [-h] -f FILE [-p] [-o OUTPUT] [-r REPORT]
options:
-h, --help show this help message and exit
-f FILE, --file FILE File with IP addresses
-p, --parse Parse file for IP addresses
-o OUTPUT, --output OUTPUT
Output file
-r REPORT, --report REPORT
Report file
usage: main.py single [-h] -i IP
options:
-h, --help show this help message and exit
-i IP, --ip IP Single IP address
usage: main.py upload [-h] -u UPLOAD
options:
-h, --help show this help message and exit
-u UPLOAD, --upload UPLOAD
File to upload
bash setup.sh
python3 main.py file -f ip_addresses.txt| tee [-a] report
cat report| grep -i "belongs" -B 1
cat report| grep -i "belongs" -B 2
cat report| grep -i "not malicious" -B 1
cat report| grep -i "not malicious" -B 2
grep -oE "\b([0-9]{1,3}\.){3}[0-9]{1,3}\b"