Skip to content
KitploitKITPLOIT
ToolsExploitsBlog
Log in
Submit
ToolsExploitsBlog
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.

FeedsContactPrivacy© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
Fix-Log4j-PowershellScript — Log4Shell mitigation (CVE-2021-44228) - search and remove JNDI class from *log4j*.jar files on the system with Powershell (Windows) | Kitploit
Tools/GitHubGitHub/sysadmin0815/fix-log4j-powershellscript
General Purpose UtilitiesVulnerability ScannersVulnerability AnalysisScripting & AutomationConfiguration AuditingIncident ResponseArchived
GitHubsysadmin0815/fix-log4j-powershellscript

Fix-Log4j-PowershellScript

Log4Shell mitigation (CVE-2021-44228) - search and remove JNDI class from *log4j*.jar files on the system with Powershell (Windows)

View Repository
354 years agoNot yet reviewed

Related Tools

  • CyberChef

    The Cyber Swiss Army Knife - a web app for encryption, encoding, compression and data analysis

  • SecLists

    Curated collection of wordlists for security assessments, including usernames, passwords, URLs, fuzzing payloads, and sensitive data patterns for penetration testing and reconnaissance.

  • scapy

    Python-based interactive packet manipulation library for forging, decoding, sending, capturing, and analyzing network packets across a wide range of protocols, supporting scanning, tracerouting, attacks, and network discovery.

Most Popular

View all →

Discover the most used tools by our community.

  • 1

    Callisto

    jetp1ane/callisto

    Automated binary vulnerability analysis tool that decompiles executables via Ghidra, scans pseudo-C code with Semgrep, and validates findings using GPT-3.5-Turbo to reduce false positives.

    2.2k
  • 2

    ghostlock-app

    yukonga/ghostlock-app

    One-tap Android kernel exploit app for CVE-2026-43499, providing privilege escalation via kernel module loading, with offset extraction and on-device analysis tools.

    854
  • 3

    DFRoot

    a2333c/dfroot

    Android root tool for Samsung Galaxy S25 Ultra (SM-S938B) that chains DirtyFrag CVE-2026-43284 and CVE-2026-43499 to gain root automatically at boot via KernelSU.

    439
  • 4

    OsintHunter

    letox4/osinthunter

    🎯 The ultimate OSINT toolkit: investigation graph, confidence scoring, alias families, map, timeline and reports. 49 modules, 400+ sites, no API keys required.

    373
  • 5

    ARTEX

    baarai/artex

    LLM multi-agent autonomous penetration testing platform with planner/worker agents, asset and exploration graphs, MITM traffic recording, and vulnerability retesting.

    365
  • 6

    wifit3

    derv82/wifit3

    Wifite but USB-only & cross-platform.

    336

Explore all tools

Browse our collection of tools

View all tools →
Share

Fix-Log4j-PowershellScript (CVE-2021-44228)

PSScriptAnalyzer

search and remove JNDI Lookup Class from log4j.jar files on the system with Powershell (Windows)
make sure you use the latest script release!

Release version 1.6.2 and above

Killmode for Java processes implemented. ($killMode)
defaults to $false if not changed manually! Be careful using this feature!

the script can be deployed manually, with GPO or deployment tools like SCCM.


Features and Info:

by default the script searches on C:\ if not changed
-can be changed to search on all local drives with $searchAllDrives = $true in the script
-can be changed to search a specific path with $searchPath = "C:\your\folder\to\search\

by default the script creates a backup of the file(s) in the same folder were the jar files was found, before removing the class
-can be disabled with $enableBackup set to $false in the script

by default the script validates if the jndilookup.class has been removed from the jar file

by default if the class is still detected and the jar file was not modified, the backup file will be cleaned up.
-can be disabled with $removeBkOnFailure set to $false

by default the script searches for running java processes and write a warning in the log and console.
-KillMode for java prcesses can be enabled by $killMode set to $true - be careful with that!

Generate a log file in the scripts root directory

Generate readable console output

How to run the script:

Please read the script and modify it if needed before you execute it!
execute the script with elevated Powershell.exe or with deploment tools like SCCM.
"powershell.exe -file "C:\Path\To\Script\Fix-log4j_jndi_7zip.ps1" -executionpolicy Bypass"

Tested on Windows 10, Server 2012R2, 2016 and 2019.

Credits:

7-Zip is used to delete the class in the jar file and verify the removal.

Source: https://www.7-zip.org/
7-Zip Copyright (C) 1999-2021 Igor Pavlov.



THE SCRIPT IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND.
Download Tool