2.9 KiB
2.9 KiB
檔案組織結構
📁 目錄說明
/scripts/ - 核心執行腳本
scripts/
├── ssh/ # SSH 方案腳本(.sh 文件)
├── winrm/ # WinRM 方案腳本(.py 文件)
└── powershell/ # PowerShell 腳本(.ps1 文件)
/config/ - 配置文件
config/
├── nirsoft-config.json # NirSoft 工具配置
├── thunderbird-config.json # Thunderbird 郵件配置
├── win11debloat-config.json # Win11Debloat 配置
└── remove-apps-config.json # 應用程式移除配置
/docs/ - 文檔資料
docs/
├── README.md # 主要說明文檔
├── CLAUDE.md # Claude Code 指導文檔
├── SSH_vs_WinRM_Comparison.md # 方案比較分析
└── WINRM_EXPLORATION_SUMMARY.md # WinRM 探索總結
/tools/ - 工具和測試
tools/
└── (診斷和測試工具)
/examples/ - 示例和雜項
examples/
├── *.rdp # 遠端桌面連接文件
├── *.cmd # 批次處理文件
├── *.reg # 登錄檔案
└── *BACKUP* # 備份文件
/logs/ - 執行日誌
logs/
└── (自動生成的執行日誌)
/dumps/ - 診斷資料
dumps/
└── (NirSoft 診斷資料備份)
🎯 快速導航
常用腳本執行:
# SSH 方案(從 scripts/ssh/ 目錄)
cd scripts/ssh && ./recon.sh
cd scripts/ssh && ./install-thunderbird.sh
# WinRM 方案(從 scripts/winrm/ 目錄)
cd scripts/winrm && python3 test_simple_winrm.py
cd scripts/winrm && python3 smart_executor.py ../powershell/recon.ps1
# 直接執行 PowerShell 腳本(透過 SSH 或 WinRM)
# scripts/powershell/ 目錄包含所有 .ps1 文件
配置文件編輯:
# 編輯配置(從 config/ 目錄)
cd config && nano thunderbird-config.json
cd config && nano win11debloat-config.json
查看文檔:
# 查看文檔(從 docs/ 目錄)
cd docs && cat README.md
cd docs && cat CLAUDE.md
📋 文件清單概覽
SSH 腳本 (scripts/ssh/)
- 所有原有的
.sh包裝腳本 - 包含 SSH 連接、腳本上傳、執行邏輯
PowerShell 腳本 (scripts/powershell/)
- 所有實際在 Windows 上執行的
.ps1腳本 - 包含系統配置、應用安裝、診斷等功能
WinRM 腳本 (scripts/winrm/)
- Python WinRM 執行器和測試工具
- 智能執行選擇器
- WinRM 連接診斷工具
配置文件 (config/)
- 各種工具和服務的 JSON 配置文件
- 可根據需求編輯自定義設定
🔄 使用建議
- 保持目錄結構 - 腳本中的相對路徑已更新
- 從適當目錄執行 - SSH 腳本從 ssh/ 目錄執行,WinRM 從 winrm/ 執行
- 配置文件共享 - config/ 目錄被所有腳本共享使用
- 查看文檔 - 所有說明和比較文件在 docs/ 目錄
這種組織方式讓專案更清晰、易於維護和理解!