diff --git a/content/posts/commits/2026-03-25-commit-27f5ef4.md b/content/posts/commits/2026-03-25-commit-27f5ef4.md new file mode 100644 index 0000000..a15b6b6 --- /dev/null +++ b/content/posts/commits/2026-03-25-commit-27f5ef4.md @@ -0,0 +1,53 @@ +--- +title: "[bojemoi] feat(orchestrator): add VulnHub VM automation endpoints" +date: 2026-03-25T23:05:13+01:00 +draft: false +tags: ["commit", "bojemoi", "main"] +categories: ["Git Activity"] +summary: "Commit 27f5ef4 par Betty dans bojemoi" +author: "Betty" +--- + +## Commit `27f5ef4` + +| | | +|---|---| +| **Repository** | bojemoi | +| **Branch** | `main` | +| **Author** | Betty | +| **Hash** | `27f5ef454a4d419fd606a38a1272cdb13778148f` | + + +### Description + +- Add VULNHUB_CATALOG with 8 VMs (metasploitable2/3, dvwa, dc-1, + kioptrix-1, basic-pentesting-1, lampiao, pwnlab-init) +- VulnHubManager: asyncpg pool + host_debug upsert (multi-target, + unlike rapid7 which replaces) +- Endpoints: GET catalog, GET targets, POST deploy/{vm_id}, + DELETE {vm_id} — clone XenServer template → start → poll IP → + register in host_debug for bm12/uzi DEBUG_MODE scanning +- Add Pydantic models: VulnHubDeployRequest/Response, VulnHubTargetsResponse +- Add scripts/import_vulnhub_ova.sh: xe vm-import helper for + first-time OVA → template creation on XenServer host + +Co-Authored-By: Claude Sonnet 4.6 + +### Files Changed + +``` +M provisioning/orchestrator/app/main.py +M provisioning/orchestrator/app/models/schemas.py +A provisioning/orchestrator/app/services/vulnhub_manager.py +A scripts/import_vulnhub_ova.sh +``` + +### Diff Summary + +``` + provisioning/orchestrator/app/main.py | 184 +++++++++++++++++++- + provisioning/orchestrator/app/models/schemas.py | 53 ++++++ + .../orchestrator/app/services/vulnhub_manager.py | 188 +++++++++++++++++++++ + scripts/import_vulnhub_ova.sh | 123 ++++++++++++++ + 4 files changed, 547 insertions(+), 1 deletion(-) +```