Skip to content
KitploitKITPLOIT
ToolsBlog
Submit
ToolsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
CVE-2019-0708-generate-hosts | Kitploit
Tools/GitHubGitHub/haishanzheng/cve-2019-0708-generate-hosts
ReconnaissanceVulnerability ScannersNetwork MappingPort ScanningVulnerability AnalysisExploitation
GitHubhaishanzheng/cve-2019-0708-generate-hosts

CVE-2019-0708-generate-hosts

View Repository

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share
227 years agoNot yet reviewed

CVE-2019-0708-generate-hosts

This program uses nmap to scan the CIDR addresses listed in the 3389_cidrs file (one per line) and generates a 3389_hosts file containing IP addresses of machines that are likely Windows machines with RDP (3389) enabled. This can significantly reduce the number of IPs that need to be checked in subsequent scans.

Dependencies

python3, nmap

Usage

Write CIDR ranges into 3389_cidrs, then run ./generate.py. The generated 3389_hosts can be used to contact administrators or to continue scanning operations.

deep_generate.py is for cases where some users have changed the default 3389 port to a different port. It uses nmap fingerprint scanning to detect ms-wbt-server and then writes the results into 3389_hosts. Since each machine requires scanning ports 1-65535, this process is very slow.

Reason

On 20190522, 360 released the CVE-2019-0708: Windows RDP Remote Vulnerability Non-Destructive Detection Tool, which is now at version 2. It can only scan a single IP.

https://github.com/biggerwing/CVE-2019-0708-poc provides a batch detection tool that reads a list of IPs from a text file. Why they used Python instead of PowerShell or BAT is beyond me.

Sun Fulong from Dalian Neusoft improved it to accept CIDR address ranges directly.

Since there are many CIDR ranges, I wrote a small piece of code that uses nmap to scan for machines with open port 3389 within those CIDR ranges, then lists those IPs for detection. This reduces the number of IPs that need to be scanned.

It is recommended to download the detection tool from the official 360 source when doing batch checks, and replace the filename used in the GitHub repositories above.

Detection results are for reference only.

Recommendations

For vulnerabilities like CVE-2019-0708, you can stay safe in normal operations by just doing the following two things:

  • Enable the firewall on the machine, and only allow specific administrator IPs or bastion hosts to access ports 3389 and 22. If you do this, it is relatively safe even without applying the patch.
  • Enable automatic system updates, and do not use servers that have reached End of Life (EOL) (refer to Song Yinchuan's LinkedIn article), such as Windows 2003. Regularly check network health and ensure automatic patching is working. Of course, there is a time lag for security patches; for example, in the case of CVE-2019-0708, the server applied the patch automatically at 3 AM the next day. At that time, manual intervention can be applied as needed.
  • Changing the default 3389 port is not recommended; it is non-standard and insecure.
Download Tool