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

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

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

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

工具目录

分类

查看所有分类
Loading categories
PSO - Printer Security Offensive — Offensive security tool for printer pentesting | Kitploit
工具/GitLabGitLab/hivesecurity/pso-printer-security-offensive
Vulnerability ScannersIoT SecurityExploitationInformation GatheringNetwork SecurityPenetration TestingHardware Security
GitLabhivesecurity/pso-printer-security-offensive

最受欢迎

查看全部 →

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

探索所有工具

浏览我们的工具集合

查看所有工具 →
分享

PSO - Printer Security Offensive

Offensive security tool for printer pentesting

查看仓库
7个月前尚未审核

🖨️ PSO - 打印机安全攻击工具

版本 0.4.0 | 更新日志

“打印机的 Nmap” - 用于打印机渗透测试的攻击性安全工具。

快速。专注。无冗余。


⚠️ 法律声明

PSO 包含评估和利用功能。使用前务必获得明确授权。

  • 安全模式: 扫描 + IPP 查询
  • 攻击模式 (--aggressive):PJL 文件系统利用

未经授权的网络扫描是违法的。请负责任地使用。


功能特性

  • ✅ 主动网络扫描 - 支持 CIDR 范围及自定义端口
  • ✅ 端口范围 - 高效扫描 443,631,5000-6000,9100
  • ✅ 二进制 IPP 协议 - 原生 IPP 精准获取打印机属性
  • ✅ PJL 探测 - 通过 @PJL INFO ID 识别打印机
  • 🔥 PJL FS 利用 (--aggressive) - 测试未经身份验证的文件系统访问
  • ✅ 作业取证 - 列出已存储的打印作业(仅元数据)
  • ✅ CVE 匹配 - 对照已知漏洞进行检查
  • ✅ 风险评分 - 确定性评分(加密、CVE、可利用性)
  • ✅ 多格式输出 - 表格、CSV、JSON

安装

root@kitploit:~
pip install -r requirements.txt

依赖项:zeroconf, requests, pyyaml


快速开始

扫描网络(标准端口)

root@kitploit:~
python pso.py --scan 192.168.1.0/24

使用自定义端口扫描

root@kitploit:~
# 单个端口
python pso.py --scan 10.0.0.0/24 --ports 8631

# 多个端口
python pso.py --scan 10.0.0.0/24 --ports 443,631,9100

# 端口范围(智能!)
python pso.py --scan 10.0.0.0/24 --ports 443,631,5000-6000,9100

单目标评估

root@kitploit:~
python pso.py 192.168.1.50 --check-jobs

攻击模式(利用)

需要授权。 启用 PJL 文件系统检查。

root@kitploit:~
python pso.py 192.168.1.50 --aggressive

输出:

root@kitploit:~
[!] 攻击模式已启用
[!] PJL 文件系统检查属于利用行为。
[!] 请确保您已获得明确授权。

[*] 192.168.1.50 (JETDIRECT)...
  └─ PJL ID: Canon imageRUNNER ADVANCE
  🔥 确认 PJL FS 访问(可被利用)

风险:🔥 严重(可被利用)

解析 Nmap 结果

root@kitploit:~
nmap -p- 10.0.0.0/16 -oX scan.xml
python pso.py --nmap scan.xml --aggressive --output json

使用方法

选项

root@kitploit:~
python pso.py [目标] [选项]

位置参数:
  target                IP 或 CIDR(例如 192.168.1.0/24)

选项:
  --scan CIDR           扫描网络范围
  --ports PORTS         端口:单个 (631)、列表 (443,631,9100)、范围 (5000-6000)
  --nmap FILE           解析 nmap XML
  --check-jobs          检查已存储的打印作业
  --aggressive          启用 PJL FS 检查(需要授权)
  --output FORMAT       table | csv | json(默认:table)
  --timeout SEC         mDNS 超时时间(默认:5)
  --no-probe            跳过主动探测

示例

使用自定义端口进行网络扫描:

root@kitploit:~
python pso.py --scan 10.0.0.0/24 --ports 443,631,5000-6000,9100

全面评估:

root@kitploit:~
python pso.py 192.168.1.50 --check-jobs --aggressive --output json

自动化工作流:

root@kitploit:~
# 1. 发现
nmap -sV -p- 10.0.0.0/16 -oX scan.xml

# 2. PSO 分析
python pso.py --nmap scan.xml --aggressive --output json > results.json

# 3. 筛选严重发现
cat results.json | jq '.printers[] | select(.risk_score > 80)'

端口扫描

默认端口: 9100, 631, 515, 443(标准打印机端口)

为什么需要自定义端口?

  • 企业环境使用非标准端口
  • 通过混淆实现安全性的配置
  • 云打印服务
  • 端口冲突规避

语法:

root@kitploit:~
--ports 631                    # 单个
--ports 443,631,9100          # 列表
--ports 5000-6000             # 范围
--ports 443,631,5000-6000,9100  # 混合

注意: 对于全面扫描,建议先使用 nmap 发现所有开放端口,然后用 PSO 解析结果。


攻击向量

1. PJL 文件系统访问 (--aggressive)

功能:

  • 向启用 PJL 的端口发送 @PJL FSDIRLIST
  • 列出打印机存储上的文件/目录
  • 无需身份验证(如果存在漏洞)

影响: 🔥 严重

  • 枚举文件名和路径
  • 识别敏感文档
  • 文件提取的前提条件

检测: 可能触发 IDS/IPS

法律: 需要明确授权

2. IPP 作业取证 (--check-jobs)

功能:

  • IPP Get-Jobs 操作
  • 检索已存储的作业元数据

影响: 🔴 高

  • 泄露敏感文件名
  • 用户名归属
  • 仅元数据(不含文档内容)

法律: 在授权的渗透测试中通常可接受


输出格式

表格(默认)

root@kitploit:~
Name                 IP              Port   Proto  Make/Model                     Risk   Level          
---------------------------------------------------------------------------------------------------------
Canon-Office         192.168.1.50    631    IPP    Canon imageRUNNER ADVANCE      85     🔥 严重(可被利用)

CSV

root@kitploit:~
python pso.py --scan 10.0.0.0/24 --output csv > findings.csv

JSON(自动化)

root@kitploit:~
python pso.py --scan 10.0.0.0/24 --output json > results.json

JSON 结构:

root@kitploit:~
{
  "printers": [
    {
      "id": "printer_192_168_1_50",
      "ip": "192.168.1.50",
      "risk_score": 85,
      "risk_level": "🔥 严重(可被利用)",
      "fs_access": true,
      "vulnerabilities": [...],
      "findings": [...]
    }
  ]
}

CVE 数据库

PSO 对照 cve_db/printers.yaml 中已知的漏洞检查打印机。

包含的 CVE:

  • HP: CVE-2022-3942(严重 9.8)、CVE-2021-39238(高 8.8)
  • Canon: CVE-2020-6796(高 7.5)
  • Xerox: CVE-2021-28673(严重 9.1)

添加自定义 CVE:

root@kitploit:~
vendors:
  YourVendor:
    models:
      "Model XYZ":
        cves:
          CVE-2025-0001:
            severity: 严重
            cvss: 9.8
            description: "您的发现"
            remediation: "修复步骤"

批量更新:

root@kitploit:~
python cve_db_builder.py --export

渗透测试工作流

root@kitploit:~
# 1. 发现
nmap -sV -p- 10.0.0.0/16 -oX nmap_scan.xml

# 2. 评估
python pso.py --nmap nmap_scan.xml --check-jobs --output json > assessment.json

# 3. 利用(仅限授权)
python pso.py <target_ip> --aggressive --output json > exploit.json

# 4. 报告
python pso.py --nmap nmap_scan.xml --output csv > client_report.csv

故障排除

ModuleNotFoundError?

root@kitploit:~
python -m pip install -r requirements.txt

未发现打印机?

  • 检查防火墙规则
  • 尝试自定义端口:--ports 8631,19100
  • 先使用 nmap 进行发现

贡献

欢迎提交 Pull Request。对于重大更改,请先开启一个 Issue 讨论您想要更改的内容。

许可证

MIT - 版权所有 © 2025 Hivesecurity

原始代码

WWW: https://hivesecurity.gitlab.io/ 仓库: https://gitlab.com/hivesecurity/pso-printer-security-offensive

下载工具