实例介绍
ssh-audit是用于ssh服务器和客户端配置审计的工具。
功能:
- SSH1和SSH2协议服务器支持;
- 分析SSH客户端配置;
- 获取横幅,识别设备或软件和操作系统,检测压缩;
- 收集密钥交换、主机密钥、加密和消息认证码算法;
- 输出算法信息(可用自何时、已移除/禁用、不安全/弱/过时等);
- 输出算法建议(根据识别的软件版本追加或移除);
- 输出安全信息(相关问题、分配的CVE列表等);
- 根据算法信息分析SSH版本兼容性;
- 来自OpenSSH、Dropbear SSH和libssh的历史信息;
- 策略扫描以确保符合强化/标准配置;
【实例截图】

【核心代码】
文件清单
└── ssh-audit-46ec4e3edcc2cff5a01db2f6e446bd7846f25fe0
├── add_builtin_man_page.sh
├── build_snap.sh
├── build_windows_executable.sh
├── CONTRIBUTING.md
├── Dockerfile
├── docker_test.sh
├── LICENSE
├── Makefile.docker
├── Makefile.pypi
├── PACKAGING.md
├── pyproject.toml
├── README.md
├── setup.cfg
├── setup.py
├── snapcraft.yaml
├── src
│ └── ssh_audit
│ ├── algorithm.py
│ ├── algorithms.py
│ ├── auditconf.py
│ ├── banner.py
│ ├── builtin_policies.py
│ ├── dheat.py
│ ├── exitcodes.py
│ ├── fingerprint.py
│ ├── gextest.py
│ ├── globals.py
│ ├── hostkeytest.py
│ ├── __init__.py
│ ├── kexdh.py
│ ├── __main__.py
│ ├── outputbuffer.py
│ ├── policy.py
│ ├── product.py
│ ├── protocol.py
│ ├── readbuf.py
│ ├── software.py
│ ├── ssh1_crc32.py
│ ├── ssh1_kexdb.py
│ ├── ssh1_publickeymessage.py
│ ├── ssh1.py
│ ├── ssh2_kexdb.py
│ ├── ssh2_kexparty.py
│ ├── ssh2_kex.py
│ ├── ssh_audit.py
│ ├── ssh_socket.py
│ ├── timeframe.py
│ ├── utils.py
│ ├── versionvulnerabilitydb.py
│ └── writebuf.py
├── ssh-audit.1
├── ssh-audit.py
├── test
│ ├── conftest.py
│ ├── docker
│ │ ├── debug.sh
│ │ ├── Dockerfile
│ │ ├── dropbear_dss_host_key
│ │ ├── dropbear_ecdsa_host_key
│ │ ├── dropbear_rsa_host_key_1024
│ │ ├── dropbear_rsa_host_key_3072
│ │ ├── ed25519.pk
│ │ ├── expected_results
│ │ │ ├── dropbear_2019.78_test1.json
│ │ │ ├── dropbear_2019.78_test1.txt
│ │ │ ├── openssh_4.0p1_test1.json
│ │ │ ├── openssh_4.0p1_test1.txt
│ │ │ ├── openssh_5.6p1_custom_policy_test10.json
│ │ │ ├── openssh_5.6p1_custom_policy_test10.txt
│ │ │ ├── openssh_5.6p1_custom_policy_test1.json
│ │ │ ├── openssh_5.6p1_custom_policy_test1.txt
│ │ │ ├── openssh_5.6p1_custom_policy_test2.json
│ │ │ ├── openssh_5.6p1_custom_policy_test2.txt
│ │ │ ├── openssh_5.6p1_custom_policy_test3.json
│ │ │ ├── openssh_5.6p1_custom_policy_test3.txt
│ │ │ ├── openssh_5.6p1_custom_policy_test4.json
│ │ │ ├── openssh_5.6p1_custom_policy_test4.txt
│ │ │ ├── openssh_5.6p1_custom_policy_test5.json
│ │ │ ├── openssh_5.6p1_custom_policy_test5.txt
│ │ │ ├── openssh_5.6p1_custom_policy_test7.json
│ │ │ ├── openssh_5.6p1_custom_policy_test7.txt
│ │ │ ├── openssh_5.6p1_custom_policy_test8.json
│ │ │ ├── openssh_5.6p1_custom_policy_test8.txt
│ │ │ ├── openssh_5.6p1_custom_policy_test9.json
│ │ │ ├── openssh_5.6p1_custom_policy_test9.txt
│ │ │ ├── openssh_5.6p1_test1.json
│ │ │ ├── openssh_5.6p1_test1.txt
│ │ │ ├── openssh_5.6p1_test2.json
│ │ │ ├── openssh_5.6p1_test2.txt
│ │ │ ├── openssh_5.6p1_test3.json
│ │ │ ├── openssh_5.6p1_test3.txt
│ │ │ ├── openssh_5.6p1_test4.json
│ │ │ ├── openssh_5.6p1_test4.txt
│ │ │ ├── openssh_5.6p1_test5.json
│ │ │ ├── openssh_5.6p1_test5.txt
│ │ │ ├── openssh_8.0p1_builtin_policy_test1.json
│ │ │ ├── openssh_8.0p1_builtin_policy_test1.txt
│ │ │ ├── openssh_8.0p1_builtin_policy_test2.json
│ │ │ ├── openssh_8.0p1_builtin_policy_test2.txt
│ │ │ ├── openssh_8.0p1_custom_policy_test11.json
│ │ │ ├── openssh_8.0p1_custom_policy_test11.txt
│ │ │ ├── openssh_8.0p1_custom_policy_test12.json
│ │ │ ├── openssh_8.0p1_custom_policy_test12.txt
│ │ │ ├── openssh_8.0p1_custom_policy_test13.json
│ │ │ ├── openssh_8.0p1_custom_policy_test13.txt
│ │ │ ├── openssh_8.0p1_custom_policy_test14.json
│ │ │ ├── openssh_8.0p1_custom_policy_test14.txt
│ │ │ ├── openssh_8.0p1_custom_policy_test15.json
│ │ │ ├── openssh_8.0p1_custom_policy_test15.txt
│ │ │ ├── openssh_8.0p1_custom_policy_test16.json
│ │ │ ├── openssh_8.0p1_custom_policy_test16.txt
│ │ │ ├── openssh_8.0p1_custom_policy_test17.json
│ │ │ ├── openssh_8.0p1_custom_policy_test17.txt
│ │ │ ├── openssh_8.0p1_custom_policy_test6.json
│ │ │ ├── openssh_8.0p1_custom_policy_test6.txt
│ │ │ ├── openssh_8.0p1_test1.json
│ │ │ ├── openssh_8.0p1_test1.txt
│ │ │ ├── openssh_8.0p1_test2.json
│ │ │ ├── openssh_8.0p1_test2.txt
│ │ │ ├── openssh_8.0p1_test3.json
│ │ │ ├── openssh_8.0p1_test3.txt
│ │ │ ├── tinyssh_20190101_test1.json
│ │ │ └── tinyssh_20190101_test1.txt
│ │ ├── host_ca_ed25519
│ │ ├── host_ca_ed25519.pub
│ │ ├── host_ca_rsa_1024
│ │ ├── host_ca_rsa_1024.pub
│ │ ├── host_ca_rsa_3072
│ │ ├── host_ca_rsa_3072.pub
│ │ ├── moduli_1024
│ │ ├── policies
│ │ │ ├── policy_test10.txt
│ │ │ ├── policy_test11.txt
│ │ │ ├── policy_test12.txt
│ │ │ ├── policy_test13.txt
│ │ │ ├── policy_test14.txt
│ │ │ ├── policy_test15.txt
│ │ │ ├── policy_test16.txt
│ │ │ ├── policy_test17.txt
│ │ │ ├── policy_test1.txt
│ │ │ ├── policy_test2.txt
│ │ │ ├── policy_test3.txt
│ │ │ ├── policy_test4.txt
│ │ │ ├── policy_test5.txt
│ │ │ ├── policy_test6.txt
│ │ │ ├── policy_test7.txt
│ │ │ ├── policy_test8.txt
│ │ │ └── policy_test9.txt
│ │ ├── ssh1_host_key
│ │ ├── ssh1_host_key.pub
│ │ ├── ssh_host_dsa_key
│ │ ├── ssh_host_dsa_key.pub
│ │ ├── ssh_host_ecdsa_key
│ │ ├── ssh_host_ecdsa_key.pub
│ │ ├── ssh_host_ed25519_key
│ │ ├── ssh_host_ed25519_key-cert.pub
│ │ ├── ssh_host_ed25519_key.pub
│ │ ├── ssh_host_rsa_key_1024
│ │ ├── ssh_host_rsa_key_1024-cert_1024.pub
│ │ ├── ssh_host_rsa_key_1024-cert_3072.pub
│ │ ├── ssh_host_rsa_key_1024.pub
│ │ ├── ssh_host_rsa_key_3072
│ │ ├── ssh_host_rsa_key_3072-cert_1024.pub
│ │ ├── ssh_host_rsa_key_3072-cert_3072.pub
│ │ └── ssh_host_rsa_key_3072.pub
│ ├── stubs
│ │ └── colorama.pyi
│ ├── test_algorithm.py
│ ├── test_auditconf.py
│ ├── test_banner.py
│ ├── test_buffer.py
│ ├── test_build_struct.py
│ ├── test_dheater.py
│ ├── test_errors.py
│ ├── test_outputbuffer.py
│ ├── test_policy.py
│ ├── test_resolve.py
│ ├── test_socket.py
│ ├── test_software.py
│ ├── test_ssh1.py
│ ├── test_ssh2_kexdb.py
│ ├── test_ssh2.py
│ ├── test_utils.py
│ ├── test_version_compare.py
│ └── tools
│ └── ci-win.cmd
├── tox.ini
└── windows_icon.ico
9 directories, 180 files
标签:
小贴士
感谢您为本站写下的评论,您的评论对其它用户来说具有重要的参考价值,所以请认真填写。
- 类似“顶”、“沙发”之类没有营养的文字,对勤劳贡献的楼主来说是令人沮丧的反馈信息。
- 相信您也不想看到一排文字/表情墙,所以请不要反馈意义不大的重复字符,也请尽量不要纯表情的回复。
- 提问之前请再仔细看一遍楼主的说明,或许是您遗漏了。
- 请勿到处挖坑绊人、招贴广告。既占空间让人厌烦,又没人会搭理,于人于己都无利。
关于好例子网
本站旨在为广大IT学习爱好者提供一个非营利性互相学习交流分享平台。本站所有资源都可以被免费获取学习研究。本站资源来自网友分享,对搜索内容的合法性不具有预见性、识别性、控制性,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,平台无法对用户传输的作品、信息、内容的权属或合法性、安全性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论平台是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二与二十三条之规定,若资源存在侵权或相关问题请联系本站客服人员,点此联系我们。关于更多版权及免责申明参见 版权及免责申明
网友评论
我要评论