post: commit c22ad9c in bojemoi
Some checks failed
Hugo Build & Deploy / build-deploy (push) Has been cancelled
Some checks failed
Hugo Build & Deploy / build-deploy (push) Has been cancelled
This commit is contained in:
80
content/posts/commits/2026-04-28-commit-c22ad9c.md
Normal file
80
content/posts/commits/2026-04-28-commit-c22ad9c.md
Normal file
@@ -0,0 +1,80 @@
|
||||
---
|
||||
title: "[bojemoi] feat(borodino/orchestrator): host_debug host_id + post-exp Phase0 + LLM Ollama"
|
||||
date: 2026-04-28T16:34:51+02:00
|
||||
draft: false
|
||||
tags: ["commit", "bojemoi", "main"]
|
||||
categories: ["Git Activity"]
|
||||
summary: "Commit c22ad9c par Betty dans bojemoi"
|
||||
author: "Betty"
|
||||
---
|
||||
|
||||
## Commit `c22ad9c`
|
||||
|
||||
| | |
|
||||
|---|---|
|
||||
| **Repository** | bojemoi |
|
||||
| **Branch** | `main` |
|
||||
| **Author** | Betty |
|
||||
| **Hash** | `c22ad9cc97f095300e6efea30fc078b07ade2bb4` |
|
||||
|
||||
|
||||
### Description
|
||||
|
||||
host_debug / host_id:
|
||||
- Ajout colonne host_id INTEGER dans host_debug (ALTER TABLE IF NOT EXISTS)
|
||||
- ensure_msf_host() dans database.py : crée l'entrée MSF hosts au moment
|
||||
de l'enregistrement VM (workspace 1, ON CONFLICT UPDATE), retourne hosts.id
|
||||
- Utilisé dans register_host(), rapid7_manager.upsert/replace_host(),
|
||||
vulnhub_manager.add_target() — transaction atomique host_debug + hosts
|
||||
- thearm_uzi MODE_DEBUG : SELECT host_id depuis host_debug, lookup
|
||||
scan_details par id (plus rapide), retourne vrai MSF host_id
|
||||
|
||||
Post-exploitation Phase 0-pre:
|
||||
- Correction : handle_new_sessions() ajoutait les sessions meterpreter dans
|
||||
upgraded_sessions avant la boucle post-exp → run_post_exploitation jamais appelé
|
||||
- Fix : capture sessions_before_ssh avant run_direct_ssh_login(), puis appel
|
||||
run_post_exploitation() sur les nouvelles sessions meterpreter issues de Phase 0-pre
|
||||
|
||||
LLM : migration Anthropic → Ollama/Mistral:
|
||||
- Suppression import anthropic + ANTHROPIC_API_KEY
|
||||
- extract_search_terms_via_ai() et ai_post_exploitation_plan() migrent vers
|
||||
Ollama /v1/chat/completions (même pattern que thearm_nuclei)
|
||||
- OLLAMA_BASE_URL=http://ollama:11434, OLLAMA_MODEL=mistral:7b-instruct
|
||||
- Timeout 180s (T400 4GB GPU hybride CPU/GPU)
|
||||
|
||||
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
||||
|
||||
### Files Changed
|
||||
|
||||
```
|
||||
M ARCHITECTURE.md
|
||||
M borodino/thearm_uzi
|
||||
M provisioning/cloud-init/alpine/database.yaml
|
||||
M provisioning/cloud-init/alpine/minimal.yaml
|
||||
M provisioning/cloud-init/alpine/webserver.yaml
|
||||
M provisioning/orchestrator/app/main.py
|
||||
M provisioning/orchestrator/app/models/schemas.py
|
||||
M provisioning/orchestrator/app/services/database.py
|
||||
M provisioning/orchestrator/app/services/rapid7_manager.py
|
||||
M provisioning/orchestrator/app/services/vulnhub_manager.py
|
||||
M provisioning/orchestrator/app/services/xenserver_client_real.py
|
||||
M stack/40-service-borodino.yml
|
||||
```
|
||||
|
||||
### Diff Summary
|
||||
|
||||
```
|
||||
ARCHITECTURE.md | 15 ++
|
||||
borodino/thearm_uzi | 263 ++++++++++++++-------
|
||||
provisioning/cloud-init/alpine/database.yaml | 9 +
|
||||
provisioning/cloud-init/alpine/minimal.yaml | 15 ++
|
||||
provisioning/cloud-init/alpine/webserver.yaml | 9 +
|
||||
provisioning/orchestrator/app/main.py | 56 +++--
|
||||
provisioning/orchestrator/app/models/schemas.py | 16 ++
|
||||
provisioning/orchestrator/app/services/database.py | 73 ++++--
|
||||
.../orchestrator/app/services/rapid7_manager.py | 37 +--
|
||||
.../orchestrator/app/services/vulnhub_manager.py | 28 ++-
|
||||
.../app/services/xenserver_client_real.py | 84 ++++++-
|
||||
stack/40-service-borodino.yml | 39 +--
|
||||
12 files changed, 474 insertions(+), 170 deletions(-)
|
||||
```
|
||||
Reference in New Issue
Block a user