Skip to content

Automated scan thousands hosts in your Active Directory domain in minutes, for Log4j vulnerabilities with multithreading mass scanner and detailed report.

Notifications You must be signed in to change notification settings

srhercules/log4j_mass_scanner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Automated Log4j Vulnerabilities Mass Scanner

Scan thousands hosts in your Active Directory domain in minutes/hours. Scanner main features include multithreading, overview and a detailed report about Log4j vulnerabilities in your enviroment, that display, for instance, how many vulnerabilties were found in each host, files paths with vulnerabilities, charts, top vulnerable hosts, summary and mail report.

Supported CVE(s): CVE-2021-4104, CVE-2021-44228, CVE-2021-44832, CVE-2021-45046, CVE-2021-45105

Created by: Hércules Gustavo Gusmao

Creation date: 03/01/2022

Version: 1.0

Features:

☆ Get enabled servers list from Active Directory included: OS, OU, IP and creation date.
☆ Multithreading scan over PsExec, using Qualys scanner.
☆ How many vulnerabilties were found in each host and file paths with vulnerabilities.
☆ Memory overload protection, pause execution when exceed 80% memory used.
☆ Generate CSV results.
☆ Generate charts.
☆ Generate detailed logs.
☆ Top 10 vulnerable hosts.
☆ Send e-mail report.

Requirements

  • Query AD computers privileges (Get-ADComputer).
  • Administrator privileges on all domain hosts.
  • Connectivity with ports 135 and 445 to all domain hosts.
  • PsExec execution privileges.
  • Mail server with open relay to send mail.

Usage:

  • Direct download: https://github.com/srhercules/log4j_mass_scanner/raw/main/LOG4J.zip
  • Unzip LOG4J.ZIP to C:\LOG4J.
  • Edit C:\LOG4J\LOG4J.PS1 and change #E-MAIL variables: $FROM, $TO, $SUBJECT, $SMTP_SERVER and $SMTP_PORT.
  • Execute C:\LOG4J\LOG4J.PS1.
  • Don't use PsExec while running the scanner, since it monitors PsExec process's to finish data collection.

Tips:

  • Servers list will be saved on C:\LOG4J\COMPUTERS\SERVERS.CSV.
  • Detailed logs will be pupulated on C:\LOG4J\LOGS\ and moved to (FAIL, VULNERABLE or NOT_VULNERABLE).
  • Results with Chart, CSV and Log Detail will be saved on C:\LOG4J\RESULTS.
  • You can monitor scanner execution by running "tasklist | findstr /i psexec" on a new PowerShell window..Scan is concluded if no process is listed.

Coming soon:

  • Include fail reason.
  • Processor usage overload protection.
  • Percentages to console and HTML body.
  • Chart embedded on mail report.

Images:

- Console output

alt text

Mail report with details

alt text

CSV parsed to Excel.

alt text

Log details

alt text

Charts

alt text alt text

About

Automated scan thousands hosts in your Active Directory domain in minutes, for Log4j vulnerabilities with multithreading mass scanner and detailed report.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published