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
Scanner_CVE_2026-42945 — Script Python para detecção de instâncias Nginx vulneráveis ao CVE-2026-42945 em IPs, CIDRs e ASNs. | Kitploit
Tools/GitHubGitHub/oseasfr/scanner_cve_2026-42945
ReconnaissanceVulnerability ScannersNetwork MappingExploitationInformation GatheringWeb Security
GitHuboseasfr/scanner_cve_2026-42945

Scanner_CVE_2026-42945

Script Python para detecção de instâncias Nginx vulneráveis ao CVE-2026-42945 em IPs, CIDRs e ASNs.

View Repository
18123 months agoNot yet reviewed

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share
image

Scanner for detecting Nginx instances vulnerable to CVE-2026-42945 (NGINX RIFT).
Accepts individual IPs, CIDR ranges, and ASNs as input.

About

CVE-2026-42945 affects all Nginx versions prior to 1.30.1.

The tool probes HTTP and HTTPS on default ports, reads the Server header from the response, and classifies each host as vulnerable, safe, or potentially affected (hidden version).

Results are saved to a log, with a list of hosts vulnerable to the CVE and a detailed .CSV file at the end.

Requirements

root@kitploit:~
pip install requests packaging urllib3 dnspython

Usage

root@kitploit:~
# Single IP
python nginx_scanner.py --ip 93.184.216.34

# CIDR range
python nginx_scanner.py --cidr 10.0.0.0/24

# Multiple CIDRs
python nginx_scanner.py --cidr 10.0.0.0/24 192.168.1.0/24

# ASN (originated prefixes resolved via RIPE Stat, fallback to bgp.tools)
python nginx_scanner.py --asn AS15169

# Combination of inputs
python nginx_scanner.py --asn AS13335 --cidr 10.0.0.0/8 --ip 1.2.3.4

# From a file (one IP, CIDR or ASN per line)
python nginx_scanner.py --file targets.txt

Example IP SCAN:

image

Example CIDR SCAN:

image

Example ASN SCAN:

image

Optional parameters

DNS resolution is executed in batch before the HTTP scan, using a dedicated thread queue (--dns-workers), preventing DNS latency from impacting scan performance.

Output

All results are written to ./logs/:

FileContent
nginx_scan_<timestamp>.logFull scan log
nginx_scan_<timestamp>_vulneraveis.txtOnly vulnerable hosts
nginx_scan_<timestamp>_resultados.csvAll hosts with status

Status values

StatusMeaning
VULNERABLEConfirmed version below 1.30.1
SAFEConfirmed version 1.30.1 or higher

Remediation

Update Nginx to version 1.30.1 or higher using the official nginx.org repository.

root@kitploit:~
# Ubuntu / Debian
curl https://nginx.org/keys/nginx_signing.key | gpg --dearmor \
  | tee /usr/share/keyrings/nginx-archive-keyring.gpg >/dev/null

echo "deb [signed-by=/usr/share/keyrings/nginx-archive-keyring.gpg] \
http://nginx.org/packages/mainline/ubuntu $(lsb_release -cs) nginx" \
  | tee /etc/apt/sources.list.d/nginx.list

echo -e "Package: *\nPin: origin nginx.org\nPin-Priority: 900" \
  | tee /etc/apt/preferences.d/99nginx

apt update && apt install --only-upgrade nginx
nginx -v

For other distributions, consult the official Nginx documentation.

References

  • NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-42945
  • Nginx changelog: https://nginx.org/en/CHANGES

Disclaimer

This script is intended for use on your own infrastructure or under explicit authorization.
Unauthorized scanning may violate various laws, so use with caution.

If you have any suggestions for feature improvements or bugs, feel free to open an issue and send me a Pull Request.

All contributions are welcome! 🚀🚀

Download Tool
ParameterDefaultDescription
--workers60Number of simultaneous threads for the HTTP scan
--timeout2.0HTTP request timeout in seconds
--dns-workers200Number of simultaneous threads for reverse DNS resolution
--dns-timeout1.5DNS query timeout in seconds
--no-confirm—Skip confirmation before starting (useful in automation)
WARNING (Hidden Version)Nginx detected but version not exposed — not confirmed safe
INDETERMINATEVersion could not be interpreted