Skip to content
KitploitKITPLOIT
工具博客
提交
工具博客
提交

黑客、渗透测试和网络安全工具,武装您的安全武器库!

Kitploit 是一个黑客、网络安全和渗透测试工具的目录。发现最新的项目更新,查找漏洞、分析系统、自动化测试并加强你的安全。

··订阅源·联系·隐私·© 2026 Kitploit

工具目录

分类

查看所有分类
Loading categories
log4shell-cloud-scanner — we are providing DevOps and security teams script to identify cloud workloads that may be vulnerable to the Log4j vulnerability(CVE-2021-44228) in their AWS account. The script enables security teams to identify external-facing AWS assets by running the exploit on them, and thus be able to map them and quickly patch them | Kitploit
工具/GitHubGitHub/mitiga/log4shell-cloud-scanner
Cloud Infrastructure SecurityReconnaissanceVulnerability ScannersExploitationCloud SecurityDNS Analysis
GitHubmitiga/log4shell-cloud-scanner

log4shell-cloud-scanner

查看仓库

最受欢迎

查看全部 →

发现我们社区最常用的工具。

探索所有工具

浏览我们的工具集合

查看所有工具 →

关于

we are providing DevOps and security teams script to identify cloud workloads that may be vulnerable to the Log4j vulnerability(CVE-2021-44228) in their AWS account. The script enables security teams to identify external-facing AWS assets by running the exploit on them, and thus be able to map them and quickly patch them

分享
1414年前尚未审核

.. image:: images/Mitiga_logo.png

简介

我们为 DevOps 和安全团队提供脚本,用于识别其 AWS 账户中可能受 Log4j 漏洞 (Log4Shell) 影响的云工作负载。 我们目前支持 "CVE-2021-44228" 和 "CVE-2021-45046" RCE 漏洞。该脚本使安全团队能够通过对外部 AWS 资产执行漏洞利用来识别它们,从而能够映射它们并快速修补它们。

通用信息

  • CVE-2021-44228 相关信息:https://nvd.nist.gov/vuln/detail/CVE-2021-44228
  • CVE-2021-45046 相关信息:https://nvd.nist.gov/vuln/detail/CVE-2021-45046
  • 一份集中更新的资料,概述了您需要了解的关于 Log4Shell 的所有信息:https://www.mitiga.io/blog/log4shell-everything-in-one-place
  • 算法详解:https://www.mitiga.io/blog/log4shell-identify-vulnerable-external-facing-workloads-in-aws-tutorial

特性 ########

  • 扫描所有区域的资源
  • 扫描所有暴露于互联网的计算资源
  • 支持通过代理执行
  • 支持使用 AWS 已知环境变量配置 AWS 凭据的多种方式:<https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-envvars.html>_

安装 / 要求

  • cPython 3.6 及以上版本

  • 安装所需的 Python 包: .. code-block:: console

    root@kitploit:~
      pip3 install -r requirements.txt
    
  • 扫描资源的 AWS 权限: .. code-block:: json

    { "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Action": [ "ec2:DescribeInstances", "ec2:DescribeSecurityGroups", "elasticloadbalancing:DescribeLoadBalancers", "elasticloadbalancing:DescribeListeners", "elasticloadbalancing:DescribeRules", "elasticloadbalancing:DescribeTargetGroupAttributes", "elasticloadbalancing:DescribeTargetGroups", ], "Resource": "*" } ] }

执行脚本之前 ######## 您需要一个服务器来等待来自易受攻击端点的 DNS 请求, 在本演示中,我们使用:interactsh <https://github.com/projectdiscovery/interactsh>,这是一个外部工具。您可以使用 interactsh 客户端或 Interactsh 网页应用 <https://app.interactsh.com/#/>

执行

  1. 获取用于 DNS 请求的 URL 地址。使用 'interactsh',您可以在客户端应用中找到它: .. image:: images/interactshdomain.png 或使用网页应用: .. image:: images/webinteractsh.png

  2. 使用以下参数执行 main.py 脚本:

    • '--dest-domain' - 用于接收来自易受攻击端点的响应的服务器
    • '--cve-id' - 要检查的 CVE(CVE-2021-44228,CVE-2021-45046)
    • (可选) '--proxies' - 如果您通过代理服务器发送请求 示例: .. code-block:: console

      检查最早的 CVE(CVE-2021-44228)

      python3 main.py --dest-domain test.interactsh.com

      检查 CVE-2021-45046

      python3 main.py --dest-domain test.interactsh.com --cve-id=CVE-2021-45046

      检查最早的 CVE(CVE-2021-44228),使用代理

      python3 main.py --dest-domain test2.interactsh.com --proxies http://127.0.0.1:8080 https://127.0.0.1:8080

查找易受攻击的端点 ######## 易受攻击的端点应向您的服务器发送 DNS 请求,格式如下:

  • EC2 实例:'{实例 ID}.{目标域名}'。示例:i-092ed1f7d1230bb9a.test.interactsh.com
  • 负载均衡器:'{负载均衡器名称}.{目标域名}'。示例:lb-name.test.interactsh.com

cli 示例:

.. image:: images/interactshresult.png

web 示例:

.. image:: images/webinteractsh_result.png

免责声明

本项目仅用于教育目的。该项目不能替代成熟的修复计划,也不能完全覆盖对外或易受攻击的资产。Mitiga 不对因使用本项目造成的任何损害承担责任。

下载工具