Exploit database

GH-4d14b132d0cb26b4a09e1c800ae3ac1f

murrez/cve-2026-101894

GitHubNot listedPoC
Download repository ZIP

Sources for CVE-2026-101894

1 source

Preferred order: Exploit-DB, Metasploit, then GitHub repositories by stars.

Repository files9
murrez/cve-2026-101894Revision 1fc32df9eb3a

Files from this repository share one source choice. Supporting files may cover other vulnerabilities.

_format_fofa_csv.py

Python · 2,629 bytes
#!/usr/bin/env python3
"""One-off: normalize fofa_csv_500.csv + fofa_targets.txt"""
import csv
import io
import os

SRC = os.path.join(os.path.dirname(__file__), "fofa_csv_500.csv")
TXT = os.path.join(os.path.dirname(__file__), "fofa_targets.txt")
HTTPS_PORTS = {443, 8443, 9443}


def make_url(host, port_s):
    host = (host or "").strip()
    try:
        port = int(str(port_s or "443").strip() or 443)
    except ValueError:
        port = 443
    if not host:
        return None
    if host.count(":") == 1:
        h, p = host.rsplit(":", 1)
        if p.isdigit():
            host, port = h, int(p)
    host = host.strip("/")
    if port in HTTPS_PORTS:
        return "https://%s" % host if port == 443 else "https://%s:%d" % (host, port)
    if port == 80:
        return "http://%s" % host
    return "http://%s:%d" % (host, port)


def main():
    lines = open(SRC, encoding="utf-8-sig", errors="replace").read().splitlines()
    header_idx = None
    for i, line in enumerate(lines):
        if line.strip().startswith("host,"):
            header_idx = i
            break
    if header_idx is None:
        raise SystemExit("no CSV header found")

    reader = csv.DictReader(lines[header_idx:])
    seen = set()
    out_rows = []
    for row in reader:
        url = make_url(row.get("host"), row.get("port"))
        if not url or url in seen:
            continue
        seen.add(url)
        out_rows.append({
            "host": (row.get("host") or "").strip(),
            "ip": (row.get("ip") or "").strip(),
            "port": str(row.get("port") or "").strip(),
            "title": (row.get("title") or "").strip(),
            "url": url,
        })

    buf = io.StringIO()
    buf.write("# FOFA Search — %d unique targets (deduped by url)\n" % len(out_rows))
    buf.write('# Query: header="X-Powered-By: Express" || banner="Node.js"\n')
    buf.write("# PoC: python poc.py --list fofa_targets.txt --mode check -j 30\n")
    buf.write("host,ip,port,title,url\n")
    w = csv.writer(buf, lineterminator="\n")
    for r in out_rows:
        w.writerow([r["host"], r["ip"], r["port"], r["title"], r["url"]])

    with open(SRC, "w", encoding="utf-8", newline="") as f:
        f.write(buf.getvalue())

    with open(TXT, "w", encoding="utf-8") as f:
        f.write("# %d URLs from fofa_csv_500.csv (authorized scanning only)\n" % len(out_rows))
        for r in out_rows:
            f.write(r["url"] + "\n")

    print("wrote %d rows -> %s and %s" % (len(out_rows), SRC, TXT))


if __name__ == "__main__":
    main()