Skip to main content

No matter what the reason is. Still, Microsoft Windows tops the position in malware infection. According to Statista report, In 2020, Windows has seen more than 83% of cyber attacks against other operating systems. This clearly tells that Windows is the hot cake for hackers, cybercriminals, and threat actors. All Windows users should pay more attention to Security than any other. Vulnerability is one of the common attack vectors to consider. When it comes to the Windows operating system, it tops the list. In Exploit DB, we found around 10K vulnerabilities related to Windows alone. It is the responsibility of each Windows user to keep track of all the newly discovered vulnerabilities regularly and fix them at the right time. We knew it was a great troublesome and laborious task to do. In this article, we are going to show how to find and fix the vulnerabilities on your Windows OS quickly.

Operating systems most affected by malware in 2020

Bar graph of Operating system's affected by Malware
Stats of Operating System’s share in the Market.

Do you know how many vulnerabilities your system has? How many exploits are available for them? How much of them are critical? Then how do you fix them? We will show you a quick method that will give answers to all such questions. We have a tool called Windows Exploit Suggester — Next Generation (WES-NG) developed on Python that will answer all these questions.

Windows Exploit Suggester — Next Generation (WES-NG):

WES-NG is a python tool that discovers vulnerabilities, including the available exploits information for the discovered vulnerabilities on the system by analyzing the output of Windows’ systeminfo utility. You can use this Python tool to find and fix the vulnerabilities on any Windows desktop operating system from Windows XP to Windows 10 and server operating system from Windows server 2003 to Windows server 2019.

How Does Windows Exploit Suggester — Next Generation (WES-NG) Work?

As we said earlier, WES-NG users the built-in utility ‘systeminfo.exe‘. If you don’t know about systeminfo, it is a command-line utility used to print detailed system information. It prints information about the processor, ram, operating system, network cards, BIOS, and system boot, and there are a plethora of things. WES-NG uses this information as input and checks for the associated vulnerabilities in its database. Its database is considered more accurate than Microsoft’s as it reefers multiple sources to create a comprehensive database. Its report shows which vulnerabilities were found in the system. Their CVV ID, associated services, available exploits, and how to fix them.

Out put of sysinfo command
sysinfo command

Pros & Cons of Windows Exploit Suggester — Next Generation (WES-NG):


The important thing to note is that it doesn’t scan the system to determine the vulnerabilities. It just provides the list of vulnerabilities based on the version, build, and patch installed on the machine. You can see the manually fixed vulnerabilities in the list, as it doesn’t scan the system for vulnerabilities. This makes it less accurate, and you may see a few false positives, either. None of the tools available in the market is perfect, right?

See Also How To Set Up Malware Analysis Environment?


However, it gives the result in no time. It’s totally free to use. It doesn’t take a lot of time to give results, unlike other tools. It’s a perfect tool for a quick check. No technical knowledge is required to run the tool. All these properties will make this tool perfect for individual users and small businesses.

Sources From Were Windows Exploit Suggester — Next Generation (WES-NG) Collects The Updates:

It gathers the data from these three sources. So this makes it more valuable.

  • Microsoft Security Bulletin: KB articles for older systems
  • MSRC: The Microsoft Security Update API of the Microsoft Security Response Center (MSRC): Standard source of information for modern Microsoft Updates
  • NIST National Vulnerability Database (NVD): Complement vulnerabilities with Exploit-DB links These are combined into a single .csv file which is compressed and hosted on GitHub repository.

How to Quickly Find and Fix Vulnerabilities On Windows?

Step #1: Clone the Git repo or just download the code from GitHub:

  1. Step #1:Clone the Git repo or just download the code from GitHub: Exploit Suggester - Next Generation
  2. Step #2:Navigate to the location where it is stored. In my case, I have stored it in: C:WindowsSystem32cmd.exeWindows Exploit Suggester
  3. Step #3Run the script from Python. Download and install the Python from if Python is not installed on your machine. It is very easy, simple, and direct procedure to install Python on the Windows machine. Make sure to add Python to the PATH. This creates a PATH environment variable to run the Python script.
    Installing Python
  4. Step #4:Install the chardet library.
    > pip install chardet

    Install chardet library
  5. Step #5:Store the systeminfo output in a file. Use the ‘>’ symbol to store the output of the systeminfo command.
    > systeminfo > sysinfo.txtsysteminfo output
  6. Step #6:1st Machine:
    Run the script using Python.
    Syntex to run the script is:
    Python full path of ‘sysinfo.txt’
    > python sysinfo.txt
    This tool can be run through a few filters.
    Filter to print only critical vulnerabilities with ‘-s critical’
    > python sysinfo.txt -s critical
    Filter to print only exploit available critical vulnerabilities with ‘-e’
    > python sysinfo.txt -e
    Get help
    > python -hRun the script using Python
  7. Step #7:Analyze the report. In this case, the first three-block shows the three vulnerabilities in my machine. Forth and last block shows the two missing patches. This system is in good shape. Suppose you found more critical vulnerabilities in the system. Apply the recommended patches written at the end of the report.Windows Update
  8. Download and install the Windows UpdatesWindows Update1
  9. No vulnerabilities. This shows that we have fixed all the vulnerabilities.Run the script using Python 1
  10. 2nd machine:We found 89 vulnerabilities. The report suggested three patches to fix all 89 vulnerabilities.WES-NG vulnerabilities report
  11. WES-NG Critical vulnerabilities filterFilter to print only critical vulnerabilities with ‘-s critical’
    > python sysinfo.txt -s critical

    WES-NG Filter to print only critical vulnerabilities
  12. WES-NG available exploit vulnerabilities filterFilter to print only exploit available critical vulnerabilities with ‘-e’
    > python sysinfo.txt -e

    WES-NG Filter to print only exploit available critical vulnerabilities
  13. Reboot to complete Windows UpdateAfter applying patches, the system will ask to restart.reboot system
  14. Windows Updates after rebootPatches were applied after the reboot.Patches applied after reboot.
  15. No vulnerabilities mean all patches were applied.WES-NG report

This completes the process. This is how you can quickly find and fix vulnerabilities on Windows in no time.

Leave a Reply