The Internet Is packed with billions of websites, all different (to some degree) In the content they contain, and whether they are In fact legit with who they claim to be. Many sites seem harmless, but unbeknownst to users, contain malware that can Infect anyone who visits and clicks on a given link. Wouldn't It be nice If you can scan a website of your choice, prior to navigating to It? In this tutorial, I will show you how to scan URLs for viruses, by using the Command Prompt.
It doesn't take much to Infect your computer with a virus. A simple click of the mouse on a particular link, and depending on the nature of the Infection, your login credentials to your online accounts that're stored In your browser's password manager, will be In the hands of the attacker. I don't need to elaborate on what happens next.
There are many tools & software, such as an antivirus or security suite, that scan links for potential threats but the majority work alone, hence can well and truly miss malicious behavior. As such, I will demonstrate how to scan URLs with around 70 different types of antivirus scanning services. This Is done via the Command Prompt, by using the most popular online virus scanner named VirusTotal.
You can scan as many URLs as you like In ONE hit, and the results will be automatically saved to a file on your computer. In order to do this, the VT Domain Scanner must be used, that can be downloaded here. In the event this link goes down, I have also provided direct download links at the end of this article. So without further ado, let's get this tutorial started.
Step One:An API key must be used with the VT Domain Scanner, so the first thing you need to do, Is create an account on VirusTotal. When you're logged In, click on your account Icon, select API key and It will be displayed to the left of the window. Copy & paste It In Notepad. You'll be using It In the next step.
Step Two:Once you've downloaded VT Domain Scanner, extract It's contents to a directory of your choice, and then double-click the VT Domain Scanner.py3.exe file. The Command Prompt will open and prompt to enter your API key, so do just that as shown below, and hit Enter.
Step Three:It will now ask whether It's a private or public key. It Is the latter, so type public and hit the Enter key on your keyboard.
Step Four:Next, open Notepad and enter every URL that you're planning to scan- with each one listed as a new line, and then save It. I've entered 5 In total, with this blog being one of them.
Step Five:Moving back to VT Domain Scanner, It will ask to Enter the path to the domains file that you've saved In the above step. The easiest way to do this, Is to simply drag and drop It, as Illustrated below.
Step Six:The tool will now begin scanning each URL. As you can see In my case, It's successfully scanned the lot, and will automatically save the results to a file In the same directory as the tool.
Step Seven:And here's the file with the results, accordingly named results.csv. To view It, open It with any CSV Viewer. I've used this online service.
Last Step:Upon opening the results.csv file, as you can see, the online virus scan report for each URL Is displayed. The green Indicates the number of detections, and the red Is how many antivirus scanners were used. Mine had 0 detections, with 71 Individual antivirus scanners, thus every URL Is clean.
Final Thoughts:This comes to very good use, If you have a large number of URLs to scan In one hit. Rather than entering each one Individually In VirusTotal Itself or using another service/software to do the same, simply add as many as you like In Notepad, and use VT Domain Scanner thereafter. Of course, you can also do It with a single URL.
As per the above step, If the virus scan report returned detections, then you'd need to Investigate It further, prior to navigating to the URL(s) In question. That Is, It could be a virus or a false positive detection.
If you like, you can use any of the links below to download VT Domain Scanner.
Direct Link Mega:
Direct Link 4shared:
Direct Link Mediafire:
Direct Link Solidfiles:
Direct Link Sabercathost: