Files
blog/content/posts/commits/2026-05-20-commit-028ab74.md
Betty ac21917cec
All checks were successful
Hugo Build & Deploy / build-deploy (push) Successful in 12s
post: commit 028ab74 in bojemoi
2026-05-20 15:56:14 +02:00

45 lines
1.2 KiB
Markdown

---
title: "[bojemoi] fix(bm12): remplacer msfconsole/db_nmap par nmap direct + parsing XML"
date: 2026-05-20T15:56:13+02:00
draft: false
tags: ["commit", "bojemoi", "main"]
categories: ["Git Activity"]
summary: "Commit 028ab74 par Betty dans bojemoi"
author: "Betty"
---
## Commit `028ab74`
| | |
|---|---|
| **Repository** | bojemoi |
| **Branch** | `main` |
| **Author** | Betty |
| **Hash** | `028ab744577835a4174ef56ecb0f7f9f47e90bc0` |
### Description
Le Dockerfile borodino est explicitement "No Metasploit", mais build_nmap_command
construisait une commande msfconsole -q -x "db_connect...; db_nmap..." → exit 127
sur chaque host, silenciant toute la détection de services.
- build_nmap_command: appel direct nmap -oX - (XML stdout), sans msfconsole
- parse_and_store_nmap_xml: parse le XML et met à jour services.name/info + hosts.os_name
- discover_all_services (debug): idem via _insert_host_from_nmap_xml (upsert host+services)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
### Files Changed
```
M borodino/thearm_bm12
```
### Diff Summary
```
borodino/thearm_bm12 | 181 ++++++++++++++++++++++++++++++++++++++++++---------
1 file changed, 150 insertions(+), 31 deletions(-)
```