Commit c22ad9c

Repositorybojemoi
Branchmain
AuthorBetty
Hashc22ad9cc97f095300e6efea30fc078b07ade2bb4

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

MMMMMMMMMMMMAbpppppppppsRorrrrrrrrrtCroooooooooaHovvvvvvvvvcIdiiiiiiiiikTisssssssss/Eniiiiiiiii4Cooooooooo0Tnnnnnnnnn-UtiiiiiiiiisRhnnnnnnnnneEegggggggggr.a////vmrcccoidmlllrrrrrrc_ooocccccceuuuuhhhhhh-zdddeeeeeebi---ssssssoiiittttttrnnnrrrrrroiiiaaaaaadttttttttti///oooooonaaarrrrrrlll/////.pppaaaaaayiiippppppmnnnppppppleee///////mmssssdmwaoeeeeaieidrrrrtnbnevvvvais.liiiibmepsccccaary/eeeeslvssssse.ec////.yrhdrxya.eaaueamymtplnmlaaainslmsbdhel.a7urps_bvyem_e.amrpna_yancgalegiree.rnp.typ_yreal.py

Diff Summary

Abpppppps1Rorrrrrrt2CrooooooaHovvvvvvcfIdiiiiiiakiTissssssrrp/lEniiiiiiccp4eCoooooohh/0sTnnnnnnees-UtiiiiiissescRhnnnnnnttrehEeggggggrrvra.a////aaivnmrcccottcigdmlllrrrooece_ooocccrrseduuuuhhh///-,zdddeeeaaxbi---sssppeo4iiitttppnr7nnnrrr//so4iiiaaassedtttttteerii///ooorrvnnaaarrrveoslll///iir.epppaaacc_yriiipppeecmtnnnpppssllieee////io//mmsrvendmwaoeaunsaieidrplt(tnbnevin_+ais.lidhr)bmepsc7ue,aary/e_baslvssm_l1e.ec/am.7.yrhdnap0ya.eaanyamymtgadmlaaaegelmsbrell.a.repsp.tyeypi.yopnys(-)21615173283539596637849++