diff --git a/content/posts/commits/2026-05-20-commit-028ab74.md b/content/posts/commits/2026-05-20-commit-028ab74.md new file mode 100644 index 0000000..d858893 --- /dev/null +++ b/content/posts/commits/2026-05-20-commit-028ab74.md @@ -0,0 +1,44 @@ +--- +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 + +### Files Changed + +``` +M borodino/thearm_bm12 +``` + +### Diff Summary + +``` + borodino/thearm_bm12 | 181 ++++++++++++++++++++++++++++++++++++++++++--------- + 1 file changed, 150 insertions(+), 31 deletions(-) +```