IF Commons GitHub

logical/nmap

Written to: 1 requirement: 1 proved, 0 partly, 0 failing, 0 with no test recorded. 0003-findings-importers FR-008

Nmap: the XML of -oX. Every open port of every host is an informational finding (the rule is open-port, the title says the port and the service), with the host name (or the address) as the asset, the port and protocol as the place, and the product and version the scan read from the service. Ports that are closed or filtered are not findings. What an open port means is the passive checks' to say, over the endpoints the estate holds: this importer only says what is open.

import { importNmap } from "./nmap.ts";
importNmap("n.xml", "<nmaprun/>").findings; // []

Source: commons/findings/src/logical/nmap.ts

1 of 2 exports are imported by a test of the run. A test that imports an export may not call it or check what it returns.

logical.importNmapfunctionno test imports it
function importNmap(file: string, xml: string): Imported

The findings of an nmap XML report.

importNmapfunction
function importNmap(file: string, xml: string): Imported

The findings of an nmap XML report.

Imported by 8 tests of the run (8 passed, 0 failed): the library's results

Titles, headings, exports, tables, columns and requirements. Esc closes.