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