Exploit databaseDownload repository ZIP
GH-b9a17e647207ff3dcd6bca8b4ab3a4f0
hanabouikni/log4shell-incident-report-cve-2021-44228
Sources for CVE-2021-44228
465 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files4
hanabouikni/log4shell-incident-report-cve-2021-44228Revision 5012a7aef29d
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
detection/detection_commands.sh
Shell · 565 bytes#!/bin/bash
# detection_commands.sh — Détection et workaround Log4Shell (CVE-2021-44228)
# B1 — Détection des versions vulnérables de Log4j (Linux)
find / -name "log4j-core-*.jar" 2>/dev/null | while read jar; do
echo "Checking $jar"
jar tf "$jar" | grep -q "JndiLookup.class" && echo "VULNERABLE: $jar"
done
# B2 — Désactivation temporaire (workaround avant patch)
export LOG4J_FORMAT_MSG_NO_LOOKUPS=true
# B3 — Recherche dans les logs des patterns d'attaque
grep -r "\${jndi:" /var/log/ 2>/dev/null
grep -r "ldap://" /var/log/ 2>/dev/null