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

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

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

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

工具目录

分类

查看所有分类
Loading categories
ansible-role-log4shell — 一个 Ansible playbook,用于通过官方 Red Hat Log4j 检测脚本 RHSB-2021-009 验证目标 Linux 主机是否存在 Log4Shell(CVE-2021-44228)。 | Kitploit
工具/GitHubGitHub/lucab85/ansible-role-log4shell
漏洞扫描器漏洞分析配置审计云安全DevSecOps
GitHublucab85/ansible-role-log4shell

ansible-role-log4shell

一个 Ansible playbook,用于通过官方 Red Hat Log4j 检测脚本 RHSB-2021-009 验证目标 Linux 主机是否存在 Log4Shell(CVE-2021-44228)。

查看仓库
4434年前尚未审核

最受欢迎

查看全部 →

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

探索所有工具

浏览我们的工具集合

查看所有工具 →
网站
分享

lucab85.ansible_role_log4shell

CI Release

Ansible 角色,用于使用 Red Hat 官方 Log4j 检测器脚本 RHSB-2021-009 扫描目标 Linux 主机,以检测 Log4Shell (CVE-2021-44228)。

已使用 Red Hat 1.3 版检测器 2022-01-10 进行测试。

Ansible Playbook

该代码也以 Ansible Playbook 形式提供:lucab85/log4j-cve-2021-44228

要求

ansible 2.9+

角色变量

默认变量值 - defaults/main.yml:

root@kitploit:~
sh_detector: "cve-2021-44228--2022-01-10-1242.sh"
sh_signature: 'cve-2021-44228--2022-01-10-1242.sh.asc'
detector_baseurl: 'https://access.redhat.com/sites/default/files/'
detector_path: "/var/"
detector_dir: "/opt/cve-2021-44228/"
detector_run_dir: 'tmp'
detector_options: '-n -d --no-progress --scan {{ detector_path }}'
gpg_keyid: '7514F77D8366B0D9'
gpg_server: "pgp.mit.edu"
clean_run_before: true
delete_after: true
verify_gpg: false
  • sh_detector:检测器 bash 脚本的文件名
  • sh_signature:检测器 GPG 签名文件的文件名
  • detector_baseurl:下载上述文件的基础 URL
  • detector_path:要检查的路径(默认 /var/)
  • detector_dir:检测器的下载路径(默认 detector_dir - /opt/cve-2021-44228/)注意:卷需要执行权限!
  • detector_run_dir:运行前要创建的子目录(默认 tmp)
  • detector_options:检测器脚本的命令行选项(默认 -n -d --no-progress --scan {{ detector_path }})
  • gpg_keyid:用于验证而下载的 GPG 公钥(默认 Red Hat 产品安全团队 7514F77D8366B0D9)

依赖

无。

下载

首先从 Ansible Galaxy 下载最新版本的 Ansible 角色 lucab85.ansible_role_log4shell:

root@kitploit:~
ansible-galaxy install lucab85.ansible_role_log4shell

示例 Playbook

以下示例展示如何使用 lucab85.ansible_role_log4shell 角色(以参数形式传递变量):

root@kitploit:~
---
- name: run detector
  hosts: all
  become: true
  roles:
    - role: lucab85.ansible_role_log4shell
      detector_path: "/var/www"

许可证

MIT / BSD

作者信息

此角色由 Luca Berton 于 2021 年创建,他是 Ansible Pilot 的作者。

Ansible Pilot

更多信息:

  • 网站
  • Ansible Pilot YouTube 频道
  • Medium
  • Twitter

捐赠

感谢您的支持:

  • Patreon
  • 请我吃披萨
  • GitHub 赞助
下载工具
  • gpg_server:用于下载 GPG 公钥的 GPG 服务器(默认 pgp.mit.edu)
  • clean_run_before:在运行前删除并重新创建运行目录 —— 检测器需要空目录(默认 true)
  • delete_after:在运行后删除 detector_dir(默认 false)
  • verify_gpg:执行 GPG 签名下载和验证(默认:false)