Skip to content

Instantly share code, notes, and snippets.

View lfama's full-sized avatar

lfama lfama

View GitHub Profile
@cecio
cecio / log4jscan.ps1
Last active December 21, 2021 13:36
log4jscan for Windows
## Based on https://cyberwatch.fr/cve/cve-2021-44228-log4shell-comment-detecter-et-corriger-cette-vulnerabilite-sur-log4j/
## Added "deep" function to scan for the problematic class in each JAR file
##
## WARNING: the scan is pretty CPU/disk intensive (beware if you scan huge disks), especially the "deep" function.
## For critical servers, run it off-hours or in maintenace window
$param1=$args[0]
Write-Output "Starting..."
$jar = @()