Jump to content

RusNet/BIBLE

From MindAttic Docs

RusNet — Project Bible

Single source of truth for what RusNet IS, is NOT, and the rules that keep it coherent. README says how to install and run it; this says how to think about it. The finish line lives in docs/RELEASE.md.

1. The one sentence

Scan the network you administer and get every reachable device, what it is and how it connects, as a standard JSON map and a self-contained interactive HTML report.

2. The product promise

  • Finds devices by ping sweep, ARP table and their own SSDP/mDNS advertisements.
  • Identifies each as far as it will say: hostname, MAC vendor, OS guess, open common ports, device type.
  • Any RusNet viewer loads any RusNet JSON; the HTML report is one file that works offline.
  • The core is Python stdlib only.

3. What it is NOT

  • Not a penetration tool: no logging in, exploiting or evading anything — benign discovery only.
  • Not for networks you do not own or are not authorised to assess.
  • Not a monitoring service: one scan, one report.

4. Architecture canon

 discovery/ (interfaces, ping, arp, dns, ports, ssdp, mdns, oui)
        └─► scanner.py ─► model.py (Scan) ─► network-map.json (docs/SCHEMA.md, v1)
                               └─► classify.py         └─► report.py ─► network-map.htm
 viewer (assets/ + vendored MindAttic.Components) hosted by:
   browser  |  rusnet/desktop.py (pywebview)  |  dotnet/RusNet.Viewer (WPF + WebView2)

4.1 Modules

rusnet/ Python package (CLI python -m rusnet), dotnet/RusNet.Viewer .NET host (no network code; Scan runs python -m rusnet scan), tests/ stdlib unittest suite.

4.2 Domain model

Scan, Interface, Host/Device (addresses, MAC, vendor, hostname, OS guess, services, device type) — see rusnet/model.py and docs/SCHEMA.md.

4.3 Key services

Scanner (orchestrates discovery), classifier (offline heuristics), report builder (inlines CSS/JS, embeds data).

5. The Laws

Inherits MindAttic.HouseRules.md by reference.

  1. Discovery stays local and benign (§3).
  2. docs/SCHEMA.md and rusnet/model.py change together.
  3. The core uses the standard library only; extras (pywebview) stay optional.
  4. Reports are self-contained: vendored components, nothing fetched at view time.
  5. A changed component is re-copied and the embedded .NET viewer.htm regenerated.

6. Verified state

1.0.0 (2da6032): scan, JSON + HTML report, both desktop viewers with Scan; parser and classification fixes (ec6062c, 0da6305). Still deploys to C:\Apps\RusNet with its own 337-line run.ps1.

7. Active frontier

docs/RELEASE.md — milestone MS-79 "RusNet 1.0 on R:".

8. Quality bar

The unittest suite passes; any schema change bumps the documented schema version; the HTML report opens offline from a single file.

9. Glossary

  • Schema v1 — the report JSON format in docs/SCHEMA.md.
  • OUI — the MAC prefix that names the vendor.
  • Viewer — the one HTML/JS app every surface hosts.
Part of RusNet.
From RusNet/docs/BIBLE.md via MindAttic.Docs; synced automatically, so edit the repo, not this page.