IF Commons GitHub

logical/listening

Written to: 1 requirement: 1 proved, 0 partly, 0 failing, 0 with no test recorded. 0003-estate-endpoints-readers FR-006

The ports a machine listens on, from what it reports: the text of ss -tuln (with or without -p), or the rows of osquery's listening_ports. Each is an endpoint with the common service its port usually carries, the protocol, and internal where it is bound to the loopback (a wildcard bind says nothing of who can reach it, and the exposure is left unsaid). The machine is linked to its endpoints (exposes). The text is read: nothing is run here.

import { importListening } from "./listening.ts";
importListening("athens.txt", "athens", "tcp LISTEN 0 128 0.0.0.0:22 0.0.0.0:*\n").assets.length; // 1

Source: commons/estate-endpoints/src/logical/listening.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.importListeningfunctionno test imports it
function importListening(source: string, host: string, text: string, asset?: string | undefined): Found

The endpoints of the ports a machine listens on. host is the machine's name or address as a client reaches it, and asset its identity in the estate, where it has one.

importListeningfunction
function importListening(source: string, host: string, text: string, asset?: string | undefined): Found

The endpoints of the ports a machine listens on. host is the machine's name or address as a client reaches it, and asset its identity in the estate, where it has one.

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

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