mirror of
https://github.com/BaaRai/ARTEX.git
synced 2026-11-20 07:00:58 +08:00
A worker can write nmap output with -oX and call ingest_scan_output with the format and path. The file is parsed deterministically: assets go through the insert_assets handler, each host becomes one tool_output fact listing its open ports, and the model gets only counters and at most 20 notable items per type. - path is resolved under the run working directory; "..", an absolute path outside it and a symlink leading outside are refused; 256 MiB cap - the XML is streamed host by host with encoding/xml; a file cut short keeps the complete hosts and returns truncated: true - target text (banners, products, hostnames) is kept only as a Go-quoted string in the fact detail - re-ingesting a file upserts the same assets and skips identical facts Worker-only, like ingest_bbot. nuclei, httpx and ffuf follow separately.