Skip to content
KitploitKITPLOIT
उपकरणब्लॉग
जमा करें
उपकरणब्लॉग
जमा करें

हैकिंग, पेनटेस्ट और साइबर सुरक्षा उपकरण आपके सुरक्षा शस्त्रागार के लिए!

Kitploit हैकिंग, साइबर सुरक्षा और पेंटेस्टिंग टूल्स की एक निर्देशिका है। कमजोरियों को खोजने, सिस्टम का विश्लेषण करने, परीक्षण को स्वचालित करने और अपनी सुरक्षा को मजबूत करने के लिए नवीनतम प्रोजेक्ट अपडेट खोजें।

··फ़ीड·संपर्क·गोपनीयता·© 2026 Kitploit

टूल निर्देशिका

श्रेणियाँ

सभी श्रेणियाँ देखें
Loading categories
CVE-2021-44228-Scanner — भेद्यता स्कैनर और Log4j2 CVE-2021-44228 के लिए शमन पैच | Kitploit
उपकरण/GitHubGitHub/logpresso/cve-2021-44228-scanner
भेद्यता स्कैनरभेद्यता विश्लेषणकॉन्फ़िगरेशन ऑडिटिंगआपूर्ति श्रृंखला सुरक्षाघटना प्रतिक्रियालॉग विश्लेषण
GitHublogpresso/cve-2021-44228-scanner

CVE-2021-44228-Scanner

भेद्यता स्कैनर और Log4j2 CVE-2021-44228 के लिए शमन पैच

रिपॉजिटरी देखें
86116954 साल पहलेKitploit द्वारा समीक्षित

सबसे लोकप्रिय

सभी देखें →

हमारे समुदाय द्वारा सबसे अधिक उपयोग किए जाने वाले उपकरण खोजें।

सभी उपकरण खोजें

हमारे उपकरणों का संग्रह ब्राउज़ करें

सभी उपकरण देखें →
साझा करें

Logpresso लोगो

log4j2-scan एक एकल बाइनरी कमांड-लाइन उपकरण है जो CVE-2021-44228 भेद्यता स्कैनिंग और शमन पैच के लिए है। यह नेस्टेड JAR फ़ाइल स्कैनिंग और पैच का भी समर्थन करता है। यह CVE-2021-45046 (log4j 2.15.0), CVE-2021-45105 (log4j 2.16.0), CVE-2021-44832 (log4j 2.17.0), CVE-2021-4104, CVE-2019-17571, CVE-2017-5645, CVE-2020-9488, CVE-2022-23302, CVE-2022-23305, CVE-2022-23307 (log4j 1.x), और CVE-2021-42550 (logback 0.9-1.2.7) भेद्यताओं का भी पता लगाता है।

Log4j जोखिम प्रबंधन

आप रिपोर्टिंग और पैच प्रबंधन के लिए log4j2-scan को Logpresso Watch सेवा के साथ एकीकृत कर सकते हैं। विवरण के लिए https://logpresso.watch पर जाएँ।

डाउनलोड

  • log4j2-scan 3.0.1 (Windows x64, 7z)
  • log4j2-scan 3.0.1 (Windows x64, zip)
    • यदि आपको VCRUNTIME140.dll not found त्रुटि मिलती है, तो Visual C++ Redistributable स्थापित करें।
    • यदि मूल निष्पादन योग्य काम नहीं करता है, तो इसके बजाय JAR का उपयोग करें। 32bit समर्थित नहीं है।
    • 7zip www.7zip.org से उपलब्ध है, और यह ओपन सोर्स और मुफ्त है।
  • log4j2-scan 3.0.1 (Linux x64)
  • log4j2-scan 3.0.1 (Linux aarch64)
    • यदि मूल निष्पादन योग्य काम नहीं करता है, तो इसके बजाय JAR का उपयोग करें। 32bit समर्थित नहीं है।
  • log4j2-scan 3.0.1 (Mac OS)
  • log4j2-scan 3.0.1 (कोई भी OS, 620KB)
  • बिल्ड

    • नेटिव इमेज कैसे बनाएं

    उपयोग कैसे करें

    बस log4j2-scan.exe या log4j2-scan को लक्ष्य निर्देशिका पथ के साथ चलाएँ। logpresso-log4j2-scan.jar JRE/JDK 7+ के साथ काम करना चाहिए।

    --fix विकल्प निम्नलिखित भेद्यताओं के लिए समर्थित है:

    • Log4j v2
      • CVE-2021-44228 (JndiLookup)
      • CVE-2021-45046 (JndiLookup)
    • Log4j v1
      • CVE-2021-4104 (JMSAppender)
      • CVE-2019-17571 (SocketServer)
      • CVE-2020-9488 (SMTPAppender)
      • CVE-2022-23302 (JMSSink)
      • CVE-2022-23305 (JDBCAppender)
      • CVE-2022-23307 (chainsaw package)

    --fix विकल्प निम्नलिखित भेद्यताओं को कम नहीं करता है:

    • Log4j v2
      • CVE-2021-44832 (JDBCAppender)
      • CVE-2021-45105 (DoS)
      • CVE-2017-5645 (SocketServer)
      • CVE-2020-9488 (SMTPAppender)
    • Logback
      • CVE-2021-42550

    उपयोग

    root@kitploit:~
    Logpresso CVE-2021-44228 Vulnerability Scanner 3.0.1 (2022-02-13)
    Usage: log4j2-scan [--scan-log4j1] [--fix] target_path1 target_path2
    
    -f [config_file_path]
            Specify config file path which contains scan target paths.
            Paths should be separated by new line. Prepend # for comment.
    --scan-log4j1
            Enables scanning for log4j 1 versions.
    --scan-logback
            Enables scanning for logback CVE-2021-42550.
    --scan-zip
            Scan also .zip extension files. This option may slow down scanning.
    --zip-charset
            Specify an alternate zip encoding other than utf-8. System default charset is used if not specified.
    --fix
            Backup original file and remove JndiLookup.class from JAR recursively.
            With --scan-log4j1 option, it also removes JMSAppender.class, SocketServer.class, SMTPAppender.class, SMTPAppender$1.class,
            JMSSink.class, JDBCAppender.class, and all classes of org.apache.log4j.chainsaw package
    --force-fix
            Do not prompt confirmation. Don't use this option unless you know what you are doing.
    --restore [backup_file_path]
            Unfix JAR files using zip archived file.
    --backup-path [zip_output_path]
            Specify backup file path.
    --backup-ext [zip]
            Specify backup file extension. zip by default.
            If --backup-path is specified, this option is ignored.
    --all-drives
            Scan all drives on Windows
    --drives c,d
            Scan specified drives on Windows. Spaces are not allowed here.
    --no-symlink
            Do not detect symlink as vulnerable file.
    --exclude [path_prefix]
            Path prefixes of directories whose absolute path starts with the specified value will be excluded.
            Does not support relative paths. You can specify multiple --exclude [path_prefix] pairs
    --exclude-config [config_file_path]
            Specify exclude path prefix list in text file. Paths should be separated by new line. Prepend # for comment.
    --exclude-pattern [pattern]
            Exclude specified paths of directories by pattern. Supports fragments.
            You can specify multiple --exclude-pattern [pattern] pairs (non regex)
    --exclude-file-config [config_file_path]
            Specify exclude file path list in text file. Paths should be separated by new line. Prepend # for comment.
    --exclude-fs nfs,tmpfs
            Exclude paths by file system type. nfs, nfs3, nfs4, afs, cifs, autofs,
            tmpfs, devtmpfs, fuse.sshfs, smbfs and iso9660 is ignored by default.
    --api-key [key]
            Send reports to Logpresso Watch service.
    --http-proxy [addr:port]
            Send reports via specified HTTP proxy server.
    --syslog-udp [host:port]
            Send reports to remote syslog host.
            Send vulnerable, potentially vulnerable, and mitigated reports by default.
    --syslog-level [level]
            Send reports only if report is higher or equal to specified level.
            Specify alert for vulnerable and potentially vulnerable reports.
            Specify info for vulnerable, potentially vulnerable, and mitigated reports.
            Specify debug for vulnerable, potentially vulnerable, mitigated, and error reports.
    --syslog-facility [code]
            Default value is 16 (LOCAL0). Facility value must be in the range of 0 to 23 inclusive.
    --rfc5424
            Follow RFC5424 The Syslog Protocol strictly.
    --report-csv
            Generate log4j2_scan_report_yyyyMMdd_HHmmss.csv in working directory if not specified otherwise via --report-path [path]
    --report-json
            Generate log4j2_scan_report_yyyyMMdd_HHmmss.json in working directory if not specified otherwise via --report-path [path]
    --report-patch
            Report also patched log4j file.
    --report-path
            Specify report output path including filename. Implies --report-csv.
    --report-dir
            Specify report output directory. Implies --report-csv.
    --no-empty-report
            Do not generate empty report.
    --csv-log-path
            Specify csv log file path. If log file exists, log will be appended.
    --json-log-path
            Specify json log file path. If log file exists, log will be appended.
    --old-exit-code
            Return sum of vulnerable and potentially vulnerable files as exit code.
    --debug
            Print exception stacktrace for debugging.
    --trace
            Print all directories and files while scanning.
    --silent
            Do not print progress message.
    --throttle
            Limit scan files per second.
    --help
            Print this help.
    

    विंडोज पर

    root@kitploit:~
    log4j2-scan [--fix] target_path
    

    लिनक्स पर

    root@kitploit:~
    ./log4j2-scan [--fix] target_path
    

    यूनिक्स (AIX, Solaris, और इसी तरह) पर

    root@kitploit:~
    java -jar logpresso-log4j2-scan-3.0.1.jar [--fix] target_path
    

    यदि आप --fix विकल्प जोड़ते हैं, तो यह प्रोग्राम मूल भेद्य JAR फ़ाइल की प्रतिलिपि .bak फ़ाइल में बनाएगा, और org/apache/logging/log4j/core/lookup/JndiLookup.class प्रविष्टि के बिना नई JAR फ़ाइल बनाएगा। सभी .bak फ़ाइलों को एक एकल ज़िप फ़ाइल में संग्रहित किया जाता है जिसका नाम log4j2_scan_backup_yyyyMMdd_HHmmss.zip होता है, फिर सुरक्षित रूप से हटा दिया जाता है। अधिकांश वातावरणों में, JNDI लुकअप सुविधा का उपयोग नहीं किया जाएगा। हालाँकि, आपको इस विकल्प का उपयोग अपने जोखिम पर करना होगा। आप --restore विकल्प का उपयोग करके मूल भेद्य JAR फ़ाइलों को आसानी से पुनर्स्थापित कर सकते हैं।

    ऑपरेटिंग सिस्टम के आधार पर:

    • विंडोज: लॉक फ़ाइलों के कारण पैच लागू करने से पहले किसी भी चल रही JVM प्रक्रिया को बंद करना आवश्यक है। फिक्स के बाद प्रभावित JVM प्रक्रिया शुरू करें।
    • Linux/macOS: पैच लागू करें, उसके बाद JVM को पुनरारंभ करें

    यदि आप पैच कार्य को स्वचालित करना चाहते हैं, तो --force-fix विकल्प का उपयोग करें। इस विकल्प के साथ, यह प्रोग्राम अब पुष्टि के लिए संकेत नहीं देगा।

    यदि org/apache/logging/log4j/core/lookup/JndiLookup.class प्रविष्टि JAR फ़ाइल से हटा दी जाती है तो (mitigated) टैग प्रदर्शित होगा।

    यदि आप --trace विकल्प जोड़ते हैं, तो यह प्रोग्राम सभी देखे गए निर्देशिकाओं और फ़ाइलों को प्रिंट करेगा। इस विकल्प का उपयोग केवल डीबगिंग के लिए करें।

    विंडोज पर:

    root@kitploit:~
    CMD> log4j2-scan.exe D:\tmp
    [*] Found CVE-2021-44228 vulnerability in D:\tmp\elasticsearch-7.16.0\bin\elasticsearch-sql-cli-7.16.0.jar, log4j 2.11.1
    [*] Found CVE-2021-44228 vulnerability in D:\tmp\elasticsearch-7.16.0\lib\log4j-core-2.11.1.jar, log4j 2.11.1
    [*] Found CVE-2021-44228 vulnerability in D:\tmp\flink-1.14.0\lib\log4j-core-2.14.1.jar, log4j 2.14.1
    [*] Found CVE-2021-44228 vulnerability in D:\tmp\logstash-7.16.0\logstash-core\lib\jars\log4j-core-2.14.0.jar, log4j 2.14.0
    [*] Found CVE-2021-44228 vulnerability in D:\tmp\logstash-7.16.0\vendor\bundle\jruby\2.5.0\gems\logstash-input-tcp-6.2.1-java\vendor\jar-dependencies\org\logstash\inputs\logstash-input-tcp\6.2.1\logstash-input-tcp-6.2.1.jar, log4j 2.9.1
    [*] Found CVE-2021-44228 vulnerability in D:\tmp\solr-7.7.3\solr-7.7.3\contrib\prometheus-exporter\lib\log4j-core-2.11.0.jar, log4j 2.11.0
    [*] Found CVE-2021-44228 vulnerability in D:\tmp\solr-7.7.3\solr-7.7.3\server\lib\ext\log4j-core-2.11.0.jar, log4j 2.11.0
    [*] Found CVE-2021-44228 vulnerability in D:\tmp\solr-8.11.0\contrib\prometheus-exporter\lib\log4j-core-2.14.1.jar, log4j 2.14.1
    [*] Found CVE-2021-44228 vulnerability in D:\tmp\solr-8.11.0\server\lib\ext\log4j-core-2.14.1.jar, log4j 2.14.1
    
    Scanned 5047 directories and 26251 files
    Found 9 vulnerable files
    Completed in 0.42 seconds
    

    यह कैसे काम करता है

    5 चरणों में चलता है:

    1. सभी .jar, .war, .ear, .aar, .rar, .nar फ़ाइलों को पुनरावर्ती रूप से खोजें।
    2. JAR फ़ाइल से META-INF/maven/org.apache.logging.log4j/log4j-core/pom.properties प्रविष्टि खोजें।
    3. groupId, artifactId, और version पढ़ें।
    4. log4j2 संस्करण की तुलना करें और भेद्य संस्करण प्रिंट करें।
    5. यदि --fix विकल्प का उपयोग किया जाता है, तो भेद्य फ़ाइल का बैकअप लें और उसे पैच करें।
      • उदाहरण के लिए, मूल vulnerable.jar को vulnerable.jar.bak में कॉपी किया जाता है
    6. सभी बैकअप फ़ाइलों को ज़िप फ़ाइल log4j2_scan_backup_yyyyMMdd_HHmmss.zip में संग्रहित करें, फिर .bak फ़ाइलें हटा दें।

    स्वचालन के लिए निकास कोड

    • -1 चलाने में विफल
    • 0 साफ (कोई भेद्यता नहीं) के लिए
    • 1 मिला के लिए
    • 2 कुछ त्रुटियों के लिए

    उपकरण एकीकरण

    • HCL BigFix
    • Checkmk
      • checkmk CVE-log4j agent plugin भी देखें

    संपर्क

    यदि आपका कोई प्रश्न या समस्या है, तो इस रिपॉजिटरी में एक issue बनाएं।

    Logpresso के बारे में

    Logpresso दक्षिण कोरिया में स्थित AI और बिग डेटा उद्योग की एक अग्रणी कंपनी है। Logpresso अपने स्वयं के बिग डेटा प्लेटफॉर्म के साथ SIEM, SOAR, लॉग प्रबंधन, और FDS समाधान प्रदान करता है।

    टूल डाउनलोड करें